X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/22dda0f00476e140b490979a3894d75ebc45b0cb..55f0c7b1f26afabb7f356343f2650626e09fce51:/src/symtab.c diff --git a/src/symtab.c b/src/symtab.c index edaf168d..8cbfc54f 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); @@ -130,7 +130,7 @@ symbol_type_set (symbol *sym, uniqstr type_name, location loc) `------------------------------------------------------------------*/ void -symbol_destructor_set (symbol *sym, char *destructor, location loc) +symbol_destructor_set (symbol *sym, const char *destructor, location loc) { if (destructor) { @@ -147,7 +147,7 @@ symbol_destructor_set (symbol *sym, char *destructor, location loc) `---------------------------------------------------------------*/ void -symbol_printer_set (symbol *sym, char *printer, location loc) +symbol_printer_set (symbol *sym, const char *printer, location loc) { if (printer) {