From 7fb8c8247e8af36da9f0747ab90326b722891c4f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 2 Feb 2011 15:08:59 +0900 Subject: [PATCH] Don't do a find_type on the parsed function. This is needed for C style declarations, but breaks QuakeC style. The fix is to do the find_type once the return type has been filled in. --- tools/qfcc/source/function.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index 0d11cfb9e..a6b1d584b 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -178,7 +178,12 @@ parse_params (type_t *type, param_t *parms) } } //print_type (&new); puts(""); - return find_type (&new); + //return find_type (&new); + { + type_t *n = new_type (); + *n = new; + return n; + } } param_t *