mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
maint: add missing const.
* src/symtab.h, src/symtab.c (symbol_print): here.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user