diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-01-02 19:09:56 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-01-03 09:03:33 +0100 |
commit | b90675e67ab0587ef2aeb202de164e3be9676d98 (patch) | |
tree | 56b53b9d4cc3df386314cd08907a7a5c5fd34fcb /NEWS | |
parent | 9ec93d4e34ad3d570963ef1f3eca0ef1d65a5aad (diff) | |
download | bison-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-- | NEWS | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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. |