mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 21:33:04 +00:00
* src/main.c: Include macrotab.h.
* src/macrotab.h (macro_entry_s): Constify fields. Adjust functions prototypes. * src/macrotab.c (macro_insert): Constify key and value. (macro_find): Constify key. (macro_insert): Include 'xalloc.h' (macro_insert): Use XMALLOC. (macro_find): Constify return value. * src/output.c (output_table_data): Rename table to table_data. (output_parser): Constify macro_key, macro_value.
This commit is contained in:
@@ -25,12 +25,12 @@
|
||||
|
||||
typedef struct macro_entry_s
|
||||
{
|
||||
char* key;
|
||||
char* value;
|
||||
const char* key;
|
||||
const char* value;
|
||||
} macro_entry_t;
|
||||
|
||||
void macro_init PARAMS ((void));
|
||||
void macro_insert PARAMS ((char* key, char* value));
|
||||
char* macro_find PARAMS ((char* key));
|
||||
void macro_insert PARAMS ((const char *key, const char *value));
|
||||
const char* macro_find PARAMS ((const char *key));
|
||||
|
||||
#endif /* not MACROTAB_H_ */
|
||||
|
||||
Reference in New Issue
Block a user