summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-01-02 19:09:56 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-01-03 09:03:33 +0100
commitb90675e67ab0587ef2aeb202de164e3be9676d98 (patch)
tree56b53b9d4cc3df386314cd08907a7a5c5fd34fcb /NEWS
parent9ec93d4e34ad3d570963ef1f3eca0ef1d65a5aad (diff)
downloadbison-b90675e67ab0587ef2aeb202de164e3be9676d98.tar.gz
clearly deprecate %name-prefix
* src/scan-gram.l (%name-prefix): Issue a deprecation warning. * tests/calc.at, tests/headers.at, tests/input.at, tests/java.at, * tests/javapush.at, tests/local.at: Adjust expectations. Or disable -Wdeprecated. * doc/bison.texi: Document that %name-prefix is replaced by %define api.prefix.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS12
1 files changed, 10 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index b37517ca..c2a64bdf 100644
--- a/NEWS
+++ b/NEWS
@@ -19,8 +19,16 @@ GNU Bison NEWS
** Deprecated features
- The use of the %error-verbose directive is deprecated in favor of "%define
- parse.error verbose" since Bison 3.0, but no warning was issued.
+ The %error-verbose directive is deprecated in favor of '%define
+ parse.error verbose' since Bison 3.0, but no warning was issued.
+
+ The '%name-prefix "xx"' directive is deprecated in favor of '%define
+ api.prefix {xx}' since Bison 3.0, but no warning was issued. These
+ directives are slightly different, you might need to adjust your code.
+ %name-prefix renames only symbols with external linkage, while api.prefix
+ also renames types and macros, including @code{YYDEBUG},
+ @code{YYTOKENTYPE}, @code{yytokentype}, @code{YYSTYPE}, @code{YYLTYPE},
+ etc.
The following variables have been renamed for consistency. Backward
compatibility is ensured, but upgrading is recommended.