mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
(SYMBOL_ATTR_PRINT, symbol_print): Direct output
to FILE * parameter, not to stderr.
This commit is contained in:
@@ -80,12 +80,12 @@ symbol_new (uniqstr tag, location loc)
|
|||||||
|
|
||||||
#define SYMBOL_ATTR_PRINT(Attr) \
|
#define SYMBOL_ATTR_PRINT(Attr) \
|
||||||
if (s->Attr) \
|
if (s->Attr) \
|
||||||
fprintf (stderr, " %s { %s }", #Attr, s->Attr)
|
fprintf (f, " %s { %s }", #Attr, s->Attr)
|
||||||
|
|
||||||
void
|
void
|
||||||
symbol_print (symbol *s, FILE *f)
|
symbol_print (symbol *s, FILE *f)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "\"%s\"", s->tag);
|
fprintf (f, "\"%s\"", s->tag);
|
||||||
SYMBOL_ATTR_PRINT (type_name);
|
SYMBOL_ATTR_PRINT (type_name);
|
||||||
SYMBOL_ATTR_PRINT (destructor);
|
SYMBOL_ATTR_PRINT (destructor);
|
||||||
SYMBOL_ATTR_PRINT (printer);
|
SYMBOL_ATTR_PRINT (printer);
|
||||||
|
|||||||
Reference in New Issue
Block a user