mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 16:23:04 +00:00
maint: use STREQ/STRNEQ.
* doc/bison.texinfo: Space change. * src/system.h (STREQ, STRNEQ): New. * src/files.c, src/ielr.c, src/lalr.c, src/muscle-tab.c, * src/output.c, src/print.c, src/print_graph.c, * src/reader.c, src/scan-skel.l, src/tables.c, * src/uniqstr.c: Use them. * src/scan-gram.l: Do not use streq.h, use system.h's STREQ. * cfg.mk: The documentation is an exception.
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
#include <ctype.h>
|
||||
#include <mbswidth.h>
|
||||
#include <quote.h>
|
||||
#include <streq.h>
|
||||
|
||||
#include <src/scan-gram.h>
|
||||
|
||||
@@ -968,7 +967,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end)
|
||||
loc.end = scanner_cursor;
|
||||
token_end = quote (token_end);
|
||||
// Instead of '\'', display "'".
|
||||
if (STREQ (token_end, "'\\''", '\'', '\\', '\'', '\'', 0,0,0,0,0))
|
||||
if (STREQ (token_end, "'\\''"))
|
||||
token_end = "\"'\"";
|
||||
complain_at (loc, _(msgid), token_end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user