mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
style changes.
* src/parse-gram.y, src/symtab.c: Space changes. * src/symtab.h: Comment changes.
This commit is contained in:
@@ -503,9 +503,9 @@ symbols.prec:
|
|||||||
;
|
;
|
||||||
|
|
||||||
symbol.prec:
|
symbol.prec:
|
||||||
symbol { $$ = $1; }
|
symbol { $$ = $1; }
|
||||||
| symbol INT { $$ = $1; symbol_user_token_number_set ($1, $2, @2); }
|
| symbol INT { $$ = $1; symbol_user_token_number_set ($1, $2, @2); }
|
||||||
;
|
;
|
||||||
|
|
||||||
/* One or more symbols to be %typed. */
|
/* One or more symbols to be %typed. */
|
||||||
symbols.1:
|
symbols.1:
|
||||||
|
|||||||
14
src/symtab.c
14
src/symtab.c
@@ -400,15 +400,15 @@ symbol_check_defined (symbol *sym)
|
|||||||
{
|
{
|
||||||
case used:
|
case used:
|
||||||
complain_at (sym->location, Wother,
|
complain_at (sym->location, Wother,
|
||||||
_("symbol %s is used, but is not defined as a token"
|
_("symbol %s is used, but is not defined as a token"
|
||||||
" and has no rules"),
|
" and has no rules"),
|
||||||
sym->tag);
|
sym->tag);
|
||||||
break;
|
break;
|
||||||
case undeclared:
|
case undeclared:
|
||||||
case needed:
|
case needed:
|
||||||
complain_at (sym->location, complaint,
|
complain_at (sym->location, complaint,
|
||||||
_("symbol %s is used, but is not defined as a token"
|
_("symbol %s is used, but is not defined as a token"
|
||||||
" and has no rules"),
|
" and has no rules"),
|
||||||
sym->tag);
|
sym->tag);
|
||||||
break;
|
break;
|
||||||
case declared:
|
case declared:
|
||||||
@@ -450,8 +450,8 @@ semantic_type_check_defined (semantic_type *sem_type)
|
|||||||
if (sem_type->props[i].kind != CODE_PROPS_NONE
|
if (sem_type->props[i].kind != CODE_PROPS_NONE
|
||||||
&& ! sem_type->props[i].is_used)
|
&& ! sem_type->props[i].is_used)
|
||||||
complain_at (sem_type->location, Wother,
|
complain_at (sem_type->location, Wother,
|
||||||
_("useless %s for type <%s>"),
|
_("useless %s for type <%s>"),
|
||||||
code_props_type_string (i), sem_type->tag);
|
code_props_type_string (i), sem_type->tag);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
complain_at (sem_type->location, Wother,
|
complain_at (sem_type->location, Wother,
|
||||||
|
|||||||
10
src/symtab.h
10
src/symtab.h
@@ -179,15 +179,15 @@ void symbol_code_props_set (symbol *sym, code_props_type kind,
|
|||||||
code_props const *destructor);
|
code_props const *destructor);
|
||||||
|
|
||||||
/** Get the computed \c \%destructor or \c %printer for \c sym, which was
|
/** Get the computed \c \%destructor or \c %printer for \c sym, which was
|
||||||
initialized with \c code_props_none_init if there's no \c \%destructor or
|
initialized with \c code_props_none_init if there's no \c \%destructor or
|
||||||
\c %printer. */
|
\c %printer. */
|
||||||
code_props const *symbol_code_props_get (symbol const *sym,
|
code_props const *symbol_code_props_get (symbol const *sym,
|
||||||
code_props_type kind);
|
code_props_type kind);
|
||||||
|
|
||||||
/* Set the \c precedence associated with \c sym.
|
/** Set the \c precedence associated with \c sym.
|
||||||
|
|
||||||
Ensure that \a symbol is a terminal.
|
Ensure that \a symbol is a terminal.
|
||||||
Do nothing if invoked with \c undef_assoc as \c assoc. */
|
Do nothing if invoked with \c undef_assoc as \c assoc. */
|
||||||
void symbol_precedence_set (symbol *sym, int prec, assoc a, location loc);
|
void symbol_precedence_set (symbol *sym, int prec, assoc a, location loc);
|
||||||
|
|
||||||
/** Set the \c class associated with \c sym. */
|
/** Set the \c class associated with \c sym. */
|
||||||
|
|||||||
Reference in New Issue
Block a user