summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-26 09:17:32 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-26 15:09:52 +0200
commit7fec669e42df1d81c41a2f40664ef9e2437b72d0 (patch)
tree9725d8e2ef60c402247c6d69ce9c3b3f3a4100fc /doc
parentcbbbe12e023a34352881fa7f0d597c7b2342eaad (diff)
downloadbison-7fec669e42df1d81c41a2f40664ef9e2437b72d0.tar.gz
c++: always define symbol_name
* data/skeletons/lalr1.cc (symbol_name): Always define it, even when it's actually yytname which is used.
Diffstat (limited to 'doc')
-rw-r--r--doc/bison.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/bison.texi b/doc/bison.texi
index 7fae3b36..84186b72 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -7510,8 +7510,10 @@ If @var{argv} is null, return the size needed to store all the possible
values, which is always less than @code{YYNTOKENS}.
@end deftypefun
-@deftypefun {const char *} yysymbol_name (@code{symbol_kind_t} @var{symbol})
+@deftypefun {@r{string type}} yysymbol_name (@code{symbol_kind_t} @var{symbol})
The name of the symbol whose kind is @var{symbol}, possibly translated.
+Depending on the options, may return a @code{const char*} or a
+@code{std::string}.
@end deftypefun
A custom syntax error function looks as follows. This implementation is