c++: always define symbol_name

* data/skeletons/lalr1.cc (symbol_name): Always define it, even when
it's actually yytname which is used.
This commit is contained in:
Akim Demaille
2020-04-26 09:17:32 +02:00
parent cbbbe12e02
commit 7fec669e42
2 changed files with 59 additions and 35 deletions

View File

@@ -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