mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
options: rename --defines as --header
The name "defines" is incorrect, the generated file contains far more than just #defines. * src/getargs.h, src/getargs.c (-H, --header): New option. With optional argument, just like --defines, --xml, etc. (defines_flag): Rename as... (header_flag): this. Adjust dependencies. * data/skeletons/bison.m4, data/skeletons/c.m4, data/skeletons/glr.c, * data/skeletons/glr.cc, data/skeletons/glr2.cc, data/skeletons/lalr1.cc, * data/skeletons/yacc.c: Adjust. * examples, doc/bison.texi: Adjust. * tests/headers.at, tests/local.at, tests/output.at: Convert most tests from using --defines to using --header.
This commit is contained in:
@@ -47,7 +47,6 @@ dummy: %empty;
|
||||
])
|
||||
|
||||
AT_BISON_CHECK([--defines=$1.h --output=$1.c $1.y])
|
||||
|
||||
AT_COMPILE([$1.o], [-I. -c $1.c])
|
||||
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
@@ -83,7 +82,7 @@ AT_DATA_GRAMMAR([input.y],
|
||||
exp: %empty;
|
||||
]])
|
||||
|
||||
AT_BISON_CHECK([--defines -o input.c input.y], [], [],
|
||||
AT_BISON_CHECK([--header -o input.c input.y], [], [],
|
||||
[[input.y:11.1-18: warning: deprecated directive: '%name-prefix "my_"', use '%define api.prefix {my_}' [-Wdeprecated]
|
||||
input.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother]
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user