92 |
muscle_entry_t *result = hash_lookup (muscle_table, &pair); |
muscle_entry_t *result = hash_lookup (muscle_table, &pair); |
93 |
return result ? result->value : NULL; |
return result ? result->value : NULL; |
94 |
} |
} |
95 |
|
|
96 |
|
|
97 |
|
/* Output the definition of all the current muscles into a list of |
98 |
|
m4_defines. */ |
99 |
|
|
100 |
|
static void |
101 |
|
muscle_m4_output (muscle_entry_t *entry, FILE *out) |
102 |
|
{ |
103 |
|
fprintf (out, "m4_define([b4_%s],\n", entry->key); |
104 |
|
fprintf (out, " [[%s]])\n\n\n", entry->value); |
105 |
|
} |
106 |
|
|
107 |
|
|
108 |
|
/* Output the definition of all the current muscles into a list of |
109 |
|
m4_defines. */ |
110 |
|
|
111 |
|
void |
112 |
|
muscles_m4_output (FILE *out) |
113 |
|
{ |
114 |
|
hash_do_for_each (muscle_table, |
115 |
|
(Hash_processor) muscle_m4_output, |
116 |
|
out); |
117 |
|
} |