[Top][All Lists]
[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
- [PATCH 0/7] {maint} use b4_token, Akim Demaille, 2012/07/23
- [PATCH 6/7] maint: fix bison's own header guards., Akim Demaille, 2012/07/23
- [PATCH 4/7] style changes., Akim Demaille, 2012/07/23
- [PATCH 3/7] autoconf: update., Akim Demaille, 2012/07/23
- [PATCH 5/7] maint: add missing const.,
Akim Demaille <=
- [PATCH 2/7] output: no longer use b4_tokens., Akim Demaille, 2012/07/23
- [PATCH 1/7] output: use the token list to define the yytokentype, Akim Demaille, 2012/07/23
- [PATCH 7/7] maint: regen., Akim Demaille, 2012/07/23