diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-23 20:14:42 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-23 20:14:42 +0100 |
commit | 53645905ea763faa4ec9d28260894c476a19b38e (patch) | |
tree | b33b7461f177c88848ffd7ec6cfdd1f09684b3f9 /examples/calc++/local.mk | |
parent | f518dbaf46eb28bd39695474de6118683d905e5f (diff) | |
download | bison-53645905ea763faa4ec9d28260894c476a19b38e.tar.gz |
avoid direct strncmp calls.
Before this change, bison would accept either .tab and _tab equivalently,
whatever the current platform. Besides, it was not obeying everywhere
to the possible definition of TAB_EXT to something else than .tab.
For consistency, handle only TAB_EXT (".tab" on non DJGPP platforms).
Support for "_tab" is neither documented, nor tested.
* src/system.h (STRNCMP_LIT): New.
From Jim Meyering.
(STRPREFIX_LIT): New.
* src/files.c, src/getargs.c: Use it.
Diffstat (limited to 'examples/calc++/local.mk')
0 files changed, 0 insertions, 0 deletions