Commit 942030dc by Akim Demaille Committed by Geoffrey Keating

gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.

2002-06-07  Akim Demaille  <akim@epita.fr>

	* gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
	Whitespace changes.

From-SVN: r54348
parent f2846820
2002-06-07 Akim Demaille <akim@epita.fr>
* gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
Whitespace changes.
2002-06-07 Jeffrey Law <law@redhat.com> 2002-06-07 Jeffrey Law <law@redhat.com>
* sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
......
...@@ -84,7 +84,7 @@ typedef_struct: ENT_TYPEDEF_STRUCT options '{' struct_fields '}' ID ...@@ -84,7 +84,7 @@ typedef_struct: ENT_TYPEDEF_STRUCT options '{' struct_fields '}' ID
externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal
{ {
note_variable ($4, adjust_field_type ($3, $2), $2, note_variable ($4, adjust_field_type ($3, $2), $2,
&lexer_line); &lexer_line);
} }
| ENT_EXTERNSTATIC options lasttype ID ARRAY semiequal | ENT_EXTERNSTATIC options lasttype ID ARRAY semiequal
...@@ -101,7 +101,7 @@ externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal ...@@ -101,7 +101,7 @@ externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal
; ;
lasttype: type lasttype: type
{ {
lexer_toplevel_done = 1; lexer_toplevel_done = 1;
$$ = $1; $$ = $1;
} }
...@@ -121,7 +121,7 @@ yacc_union: ENT_YACCUNION options struct_fields '}' yacc_typematch ...@@ -121,7 +121,7 @@ yacc_union: ENT_YACCUNION options struct_fields '}' yacc_typematch
yacc_typematch: /* empty */ yacc_typematch: /* empty */
{ $$ = NULL; } { $$ = NULL; }
| yacc_typematch PERCENT_ID yacc_ids | yacc_typematch PERCENT_ID yacc_ids
{ {
pair_p p; pair_p p;
for (p = $3; p->next != NULL; p = p->next) for (p = $3; p->next != NULL; p = p->next)
{ {
...@@ -154,7 +154,7 @@ yacc_typematch: /* empty */ ...@@ -154,7 +154,7 @@ yacc_typematch: /* empty */
yacc_ids: /* empty */ yacc_ids: /* empty */
{ $$ = NULL; } { $$ = NULL; }
| yacc_ids ID | yacc_ids ID
{ {
pair_p p = xcalloc (1, sizeof (*p)); pair_p p = xcalloc (1, sizeof (*p));
p->next = $1; p->next = $1;
p->line = lexer_line; p->line = lexer_line;
...@@ -272,7 +272,7 @@ option: type_option '(' type ')' ...@@ -272,7 +272,7 @@ option: type_option '(' type ')'
$$ = o; $$ = o;
} }
| ID '(' STRING ')' | ID '(' STRING ')'
{ {
options_p o = xmalloc (sizeof (*o)); options_p o = xmalloc (sizeof (*o));
o->name = $1; o->name = $1;
o->info = (void *)$3; o->info = (void *)$3;
...@@ -292,7 +292,7 @@ optionseq: option ...@@ -292,7 +292,7 @@ optionseq: option
} }
; ;
optionseqopt: { $$ = NULL } optionseqopt: { $$ = NULL; }
| optionseq { $$ = $1; } | optionseq { $$ = $1; }
; ;
%% %%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment