make sure messages generated by issues within a function don't get

"At top level"
This commit is contained in:
Bill Currie 2004-02-13 04:57:15 +00:00
parent b6c2320d5d
commit 865b31caac

View file

@ -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 ';'
{ {