X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/34d419381579dd30642e5646aaeaece36207be94..4b7a4c1b1c8c18e9ad2517c117442b9b7d7e671a:/src/muscle_tab.c?ds=sidebyside diff --git a/src/muscle_tab.c b/src/muscle_tab.c index fdb03c29..c25b519d 100644 --- a/src/muscle_tab.c +++ b/src/muscle_tab.c @@ -120,7 +120,8 @@ muscle_insert (char const *key, char const *value) /* First insertion in the hash. */ entry = xmalloc (sizeof *entry); entry->key = key; - hash_insert (muscle_table, entry); + if (!hash_insert (muscle_table, entry)) + xalloc_die (); } else free (entry->storage); @@ -149,7 +150,8 @@ muscle_grow (const char *key, const char *val, const char *separator) /* First insertion in the hash. */ entry = xmalloc (sizeof *entry); entry->key = key; - hash_insert (muscle_table, entry); + if (!hash_insert (muscle_table, entry)) + xalloc_die (); entry->value = entry->storage = xstrdup (val); } else @@ -436,9 +438,9 @@ muscle_percent_define_insert (char const *variable, location variable_loc, free (variable_tr); return; } - warn_at (variable_loc, _("%s `%s' redefined"), - "%define variable", variable); - warn_at (muscle_percent_define_get_loc (variable), + complain_at (variable_loc, _("%s `%s' redefined"), + "%define variable", variable); + complain_at (muscle_percent_define_get_loc (variable), _("previous definition")); }