X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/95612cfa608188fc323ed3f8560cc6aea953ff32..fe22d5d20ff5a88a3a0dba28a11623b235a422ab:/src/struniq.c diff --git a/src/struniq.c b/src/struniq.c index e3d32bbb..a42f7862 100644 --- a/src/struniq.c +++ b/src/struniq.c @@ -37,7 +37,7 @@ static struct hash_table *struniqs_table = NULL; | Create the struniq for S if needed. | `-------------------------------------*/ -const struniq_t +struniq_t struniq_new (const char *s) { struniq_t res = hash_lookup (struniqs_table, s); @@ -51,21 +51,17 @@ struniq_new (const char *s) } -/*---------------------------------. -| Return TRUE iff S is a struniq. | -`---------------------------------*/ +/*------------------------------. +| Abort if S is not a struniq. | +`------------------------------*/ -bool -struniq_assert_p (const char *s) +void +struniq_assert (const char *s) { if (!hash_lookup (struniqs_table, s)) { error (0, 0, "not a struniq: %s", quotearg (s)); - return false; - } - else - { - return true; + abort (); } }