summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-06-09 07:08:11 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-06-09 08:09:26 +0200
commita53c6026cd367c75d5594e6e649ee1cdda93d5ae (patch)
treea463d7fe1d1fc1b8027536511dc51e4bbc4a735d /NEWS
parentae5edcc23b785b5ff0652aec79f8ee39f13be687 (diff)
downloadbison-a53c6026cd367c75d5594e6e649ee1cdda93d5ae.tar.gz
api.header.include: document it, and fix its default value
While defining api.header.include worked as expected, its default value was incorrectly defined. As a result, by default, the generated parsers still duplicated the content of the generated header instead of including it. * data/skeletons/yacc.c (api.header.include): Fix its default value. * tests/output.at: Check it. * doc/bison.texi (%define Summary): Document api.header.include. While at it, move the definition of api.namespace at the proper place.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS20
1 files changed, 20 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 712b2b7a..1cec2252 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,26 @@ GNU Bison NEWS
When installed to be relocatable (via configure --enable-relocatable),
bison will now also look for a relocated m4.
+** Bug fixes
+
+*** Include the generated header (yacc.c)
+
+ Historically, when --defines was used, bison generated a header and pasted
+ an exact copy of it into the generated parser implementation file. Since
+ Bison 3.4 it is possible to specify that the header should be `#include`d,
+ and how. For instance
+
+ %define api.header.include {"parse.h"}
+
+ or
+
+ %define api.header.include {<parser/parse.h>}
+
+ Now api.header.include defaults to `"header-basename"`, as was intended in
+ Bison 3.4, where `header-basename` is the basename of the generated
+ header. This is disabled when the generated header is `y.tab.h`, to
+ comply with Automake's ylwrap.
+
** New features
*** File prefix mapping