From b07392b81895d989f885c08abe81077b37ecad94 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 3 Feb 2011 18:04:41 +0900 Subject: [PATCH] Allow ivars to use C syntax declarations. --- tools/qfcc/source/qc-parse.y | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 97af77cdb..8b288b753 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -171,7 +171,7 @@ int yylex (void); %type const string -%type ivar_decl ivar_declarator def_item def_list +%type ivar_decl def_item def_list %type ivars %type param param_list %type methoddef @@ -1401,18 +1401,8 @@ ivar_decl ; ivars - : ivar_declarator - | ivars ',' { $$ = $0; } ivar_declarator - ; - -ivar_declarator - : identifier - { - $1 = check_redefined ($1); - $1->type = $0.type; - $1->visibility = current_visibility; - symtab_addsymbol (current_symtab, $1); - } + : struct_decl + | ivars ',' { $$ = $0; } struct_decl ; methoddef