summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-09-06 14:20:43 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-09-19 17:49:03 +0200
commitb327f388325590af1a395d7fdc6a31d186f13ec0 (patch)
treeb3fcfba7f6bda90eafd3eb01388e595531d327dc /etc
parent75c3746ce287f9ba3ee5d8c60e2961be72b544f0 (diff)
downloadbison-b327f388325590af1a395d7fdc6a31d186f13ec0.tar.gz
deprecate %defines in favor of %header
This is consistent with --defines being deprecated in favor of --header. The directive %defines is also too similar to %define. And %header matches nicely with api.header.name. * src/scan-gram.l (%defines): Deprecate to %header. (%header): Scan it. * src/parse-gram.y (PERCENT_DEFINES): Replace with... (PERCENT_HEADER): this. * data/skeletons/lalr1.java * doc/bison.texi * tests/actions.at, tests/c++.at, tests/calc.at, tests/conflicts.at, * tests/input.at, tests/java.at, tests/local.at, tests/output.at, * tests/synclines.at, tests/types.at: Convert most tests to check %header instead of %defines.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bench.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/bench.pl.in b/etc/bench.pl.in
index 96a92fb6..503ab7b9 100755
--- a/etc/bench.pl.in
+++ b/etc/bench.pl.in
@@ -581,7 +581,7 @@ sub generate_grammar_list ($$@)
or die;
print $out <<EOF;
%language "C++"
-%defines
+%header
%locations
$directives