From ab703f2c9b0e79a6abd6d587a4df2381643cb24c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 20 Jul 2005 21:17:04 +0000 Subject: [PATCH] (SYMBOL_ATTR_PRINT, symbol_print): Direct output to FILE * parameter, not to stderr. --- src/symtab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/symtab.c b/src/symtab.c index edaf168d..1e0ec1cc 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -80,12 +80,12 @@ symbol_new (uniqstr tag, location loc) #define SYMBOL_ATTR_PRINT(Attr) \ if (s->Attr) \ - fprintf (stderr, " %s { %s }", #Attr, s->Attr) + fprintf (f, " %s { %s }", #Attr, s->Attr) void symbol_print (symbol *s, FILE *f) { - fprintf (stderr, "\"%s\"", s->tag); + fprintf (f, "\"%s\"", s->tag); SYMBOL_ATTR_PRINT (type_name); SYMBOL_ATTR_PRINT (destructor); SYMBOL_ATTR_PRINT (printer); -- 2.45.2