bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/7] maint: add missing const.


From: Akim Demaille
Subject: [PATCH 5/7] maint: add missing const.
Date: Mon, 23 Jul 2012 14:03:23 +0200

* src/symtab.h, src/symtab.c (symbol_print): here.
---
 src/symtab.c | 2 +-
 src/symtab.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/symtab.c b/src/symtab.c
index 12e19ec..ab3f12e 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 4663a69..e2bf2d3 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);
-- 
1.7.11.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]