maint: add missing const.

* src/symtab.h, src/symtab.c (symbol_print): here.
This commit is contained in:
Akim Demaille
2012-07-22 16:41:00 +02:00
parent 0560fa24d6
commit c5289832f2
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ semantic_type_new (uniqstr tag, const location *loc)
fprintf (f, " %s { %s }", #Attr, s->props[Attr].code) fprintf (f, " %s { %s }", #Attr, s->props[Attr].code)
void void
symbol_print (symbol *s, FILE *f) symbol_print (symbol const *s, FILE *f)
{ {
if (s) if (s)
{ {

View File

@@ -149,7 +149,7 @@ symbol *dummy_symbol_get (location loc);
`--------------------*/ `--------------------*/
/** Print a symbol (for debugging). */ /** Print a symbol (for debugging). */
void symbol_print (symbol *s, FILE *f); void symbol_print (symbol const *s, FILE *f);
/** Is this a dummy nonterminal? */ /** Is this a dummy nonterminal? */
bool symbol_is_dummy (const symbol *sym); bool symbol_is_dummy (const symbol *sym);