From dc6296e9b1def4aad5cc58867a53c89239595af9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 3 Feb 2011 18:03:37 +0900 Subject: [PATCH] Allow ivars to use typedefs and other classes. --- tools/qfcc/source/qc-parse.y | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 57a7349cd..97af77cdb 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -1393,6 +1393,11 @@ ivar_decls ivar_decl : type { $$ = $1; } ivars + | type_name_or_class_name + { + $$ = make_spec ($1->type, 0, 0, 0); + } + ivars {} ; ivars