diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-04-22 19:24:11 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-04-25 20:20:59 +0200 |
commit | 9260e5ca4fa62ff971fc52a2dd64474dd60e5990 (patch) | |
tree | 45640c9b3a1b8aba85841f3ad9aafeae9409ca1a /doc | |
parent | 971e72514fd38938ae5370ff13473e5111e886ce (diff) | |
download | bison-9260e5ca4fa62ff971fc52a2dd64474dd60e5990.tar.gz |
api.location.type: support it in C
Reported by Balázs Scheidler.
* data/skeletons/c.m4 (b4_location_type_define): Use api.location.type
if defined.
* doc/bison.texi: Document it.
* tests/local.at (AT_C_IF, AT_LANG_CASE): New.
Support Span in C.
* tests/calc.at (Span): Convert it to be usable in C and C++.
Check api.location.type with yacc.c and glr.c.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bison.texi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/bison.texi b/doc/bison.texi index 769e39f4..4f29c837 100644 --- a/doc/bison.texi +++ b/doc/bison.texi @@ -5975,7 +5975,7 @@ Introduced in Bison 3.2. @deffn {Directive} {%define api.location.type} @{@var{type}@} @itemize @bullet -@item Language(s): C++, Java +@item Language(s): C, C++, Java @item Purpose: Define the location type. @xref{User Defined Location Type}. @@ -5985,8 +5985,7 @@ Introduced in Bison 3.2. @item Default Value: none @item History: -Introduced in Bison 2.7 for C, C++ and Java. Introduced under the name -@code{location_type} for C++ in Bison 2.5 and for Java in Bison 2.4. +Introduced in Bison 2.7 for C++ and Java, in Bison 3.4 for C. @end itemize @end deffn |