mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Reset current_storage when resetting current_symtab.
This helps prevent an internal error caused by ealier errors.
This commit is contained in:
parent
85387e02cf
commit
ff4b232d92
1 changed files with 20 additions and 3 deletions
|
@ -271,12 +271,29 @@ external_def_list
|
|||
: /* empty */
|
||||
{
|
||||
current_symtab = pr.symtab;
|
||||
current_storage = sc_global;
|
||||
}
|
||||
| external_def_list external_def
|
||||
| external_def_list obj_def
|
||||
| error END { current_class = 0; yyerrok; current_symtab = pr.symtab; }
|
||||
| error ';' { yyerrok; current_symtab = pr.symtab; }
|
||||
| error '}' { yyerrok; current_symtab = pr.symtab; }
|
||||
| error END
|
||||
{
|
||||
yyerrok;
|
||||
current_class = 0;
|
||||
current_symtab = pr.symtab;
|
||||
current_storage = sc_global;
|
||||
}
|
||||
| error ';'
|
||||
{
|
||||
yyerrok;
|
||||
current_symtab = pr.symtab;
|
||||
current_storage = sc_global;
|
||||
}
|
||||
| error '}'
|
||||
{
|
||||
yyerrok;
|
||||
current_symtab = pr.symtab;
|
||||
current_storage = sc_global;
|
||||
}
|
||||
;
|
||||
|
||||
external_def
|
||||
|
|
Loading…
Reference in a new issue