X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0eae1c91c8675aaaea36d724a74d9051018b243f..500bbfcd816776d0ddbf3555fedd41b529c405b3:/src/struniq.c diff --git a/src/struniq.c b/src/struniq.c index e593a4d3..a42f7862 100644 --- a/src/struniq.c +++ b/src/struniq.c @@ -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 (); } }