From 0f94dd95d2134ef7e9bd6bd0b614bd7c957eea2d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 3 Feb 2004 07:29:20 +0000 Subject: [PATCH] make @class foo work when foo is already defined --- tools/qfcc/source/qc-parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 8491bd4e6..2b679bba2 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -1011,12 +1011,12 @@ obj_def ; identifier_list - : NAME + : maybe_class { $$ = new_block_expr (); append_expr ($$, new_name_expr ($1)); } - | identifier_list ',' NAME + | identifier_list ',' maybe_class { append_expr ($1, new_name_expr ($3)); $$ = $1;