mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Reset current_func at the end of each function.
This commit is contained in:
parent
3a1e467ae8
commit
09af401f0c
1 changed files with 3 additions and 0 deletions
|
@ -340,6 +340,7 @@ function_body
|
|||
build_code_function ($<symbol>2, $1, $4);
|
||||
current_symtab = $<symtab>3;
|
||||
current_storage = st_global;
|
||||
current_func = 0;
|
||||
}
|
||||
| '=' '#' expr ';'
|
||||
{
|
||||
|
@ -838,6 +839,7 @@ code_func
|
|||
build_code_function ($<symbol>0, $2, $4);
|
||||
current_symtab = $<symtab>3;
|
||||
current_storage = st_global;
|
||||
current_func = 0;
|
||||
}
|
||||
;
|
||||
|
||||
|
@ -1487,6 +1489,7 @@ methoddef
|
|||
build_code_function ($<symbol>4, $3, $6);
|
||||
current_symtab = $<symtab>5;
|
||||
current_storage = st_global;
|
||||
current_func = 0;
|
||||
}
|
||||
| ci methoddecl '=' '#' const ';'
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue