]> git.saurik.com Git - bison.git/commitdiff
maint: add missing const.
authorAkim Demaille <akim@lrde.epita.fr>
Sun, 22 Jul 2012 14:41:00 +0000 (16:41 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 22 Jul 2012 18:19:51 +0000 (20:19 +0200)
* src/symtab.h, src/symtab.c (symbol_print): here.

src/symtab.c
src/symtab.h

index 12e19ec98f0c297016eb7992216bc1ce83898107..ab3f12e71d346a6a2a243f2b4ae3a78f0df8b023 100644 (file)
@@ -147,7 +147,7 @@ semantic_type_new (uniqstr tag, const location *loc)
     fprintf (f, " %s { %s }", #Attr, s->props[Attr].code)
 
 void
-symbol_print (symbol *s, FILE *f)
+symbol_print (symbol const *s, FILE *f)
 {
   if (s)
     {
index 4663a6958a870eca8fb2dadfe0e290aa5a625262..e2bf2d384c3f8ec09f08e7194a1f0ba6f26115d7 100644 (file)
@@ -149,7 +149,7 @@ symbol *dummy_symbol_get (location loc);
 `--------------------*/
 
 /** 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?  */
 bool symbol_is_dummy (const symbol *sym);