yyprint -> print_token_value

This commit is contained in:
Paul Eggert
2002-11-27 18:32:12 +00:00
parent 136d65300d
commit 831d3c996d

View File

@@ -2302,8 +2302,8 @@ can be done with two @var{Prologue} blocks, one before and one after the
@} @}
%@{ %@{
static void yyprint(FILE *, int, YYSTYPE); static void print_token_value (FILE *, int, YYSTYPE);
#define YYPRINT(F, N, L) yyprint(F, N, L) #define YYPRINT(F, N, L) print_token_value (F, N, L)
%@} %@}
@dots{} @dots{}
@@ -5980,10 +5980,10 @@ Here is an example of @code{YYPRINT} suitable for the multi-function
calculator (@pxref{Mfcalc Decl, ,Declarations for @code{mfcalc}}): calculator (@pxref{Mfcalc Decl, ,Declarations for @code{mfcalc}}):
@smallexample @smallexample
#define YYPRINT(file, type, value) yyprint (file, type, value) #define YYPRINT(file, type, value) print_token_value (file, type, value)
static void static void
yyprint (FILE *file, int type, YYSTYPE value) print_token_value (FILE *file, int type, YYSTYPE value)
@{ @{
if (type == VAR) if (type == VAR)
fprintf (file, "%s", value.tptr->name); fprintf (file, "%s", value.tptr->name);