From 865b31caac6dfbc4ab2d04c75ec8674716e1bc3a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 13 Feb 2004 04:57:15 +0000 Subject: [PATCH] make sure messages generated by issues within a function don't get "At top level" --- tools/qfcc/source/qc-parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index a00759550..4d4026f76 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -281,6 +281,7 @@ cfunction begin_function statement_block { $$ = $5; } end_function { build_code_function ($7, $4, $8); + current_func = 0; } ; @@ -492,6 +493,7 @@ code_func begin_function statement_block { $$ = $3; } end_function { build_code_function ($5, $2, $6); + current_func = 0; } ; @@ -668,7 +670,6 @@ end_function : /*empty*/ { current_scope = current_scope->parent; - current_func = 0; current_storage = $0; } ; @@ -1341,6 +1342,7 @@ methoddef begin_function statement_block { $$ = $5; } end_function { $2->func = build_code_function ($7, $4, $8); + current_func = 0; } | ci methoddecl '=' '#' const ';' {