mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
make sure messages generated by issues within a function don't get
"At top level"
This commit is contained in:
parent
b6c2320d5d
commit
865b31caac
1 changed files with 3 additions and 1 deletions
|
@ -281,6 +281,7 @@ cfunction
|
||||||
begin_function statement_block { $<op>$ = $<op>5; } end_function
|
begin_function statement_block { $<op>$ = $<op>5; } end_function
|
||||||
{
|
{
|
||||||
build_code_function ($7, $4, $8);
|
build_code_function ($7, $4, $8);
|
||||||
|
current_func = 0;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -492,6 +493,7 @@ code_func
|
||||||
begin_function statement_block { $<op>$ = $<op>3; } end_function
|
begin_function statement_block { $<op>$ = $<op>3; } end_function
|
||||||
{
|
{
|
||||||
build_code_function ($5, $2, $6);
|
build_code_function ($5, $2, $6);
|
||||||
|
current_func = 0;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -668,7 +670,6 @@ end_function
|
||||||
: /*empty*/
|
: /*empty*/
|
||||||
{
|
{
|
||||||
current_scope = current_scope->parent;
|
current_scope = current_scope->parent;
|
||||||
current_func = 0;
|
|
||||||
current_storage = $<op>0;
|
current_storage = $<op>0;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
@ -1341,6 +1342,7 @@ methoddef
|
||||||
begin_function statement_block { $<op>$ = $<op>5; } end_function
|
begin_function statement_block { $<op>$ = $<op>5; } end_function
|
||||||
{
|
{
|
||||||
$2->func = build_code_function ($7, $4, $8);
|
$2->func = build_code_function ($7, $4, $8);
|
||||||
|
current_func = 0;
|
||||||
}
|
}
|
||||||
| ci methoddecl '=' '#' const ';'
|
| ci methoddecl '=' '#' const ';'
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue