From: Akim Demaille <akim@lrde.epita.fr>
Date: Sun, 22 Jul 2012 14:41:00 +0000 (+0200)
Subject: maint: add missing const.
X-Git-Tag: v2.7.90~394
X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/c5289832f2e6d5fdbc4922b9ada473cc52e6abce

maint: add missing const.

* src/symtab.h, src/symtab.c (symbol_print): here.
---

diff --git a/src/symtab.c b/src/symtab.c
index 12e19ec9..ab3f12e7 100644
--- a/src/symtab.c
+++ b/src/symtab.c
@@ -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)
     {
diff --git a/src/symtab.h b/src/symtab.h
index 4663a695..e2bf2d38 100644
--- a/src/symtab.h
+++ b/src/symtab.h
@@ -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);