From 7238052daa8090f0d6bac24eeaffe5890b3ac282 Mon Sep 17 00:00:00 2001 From: CaS Date: Thu, 10 Jan 2002 09:36:13 +0000 Subject: [PATCH] ??? git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12077 72102866-910b-0410-8b05-ffd578937521 --- Tools/AGSParser.m | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/Tools/AGSParser.m b/Tools/AGSParser.m index ed6889547..f7241b200 100644 --- a/Tools/AGSParser.m +++ b/Tools/AGSParser.m @@ -138,6 +138,10 @@ [a addObject: @"("]; pos++; result = [self parseDeclaratorInto: a]; + if ([self skipWhiteSpace] < length && buffer[pos] == '(') + { + [self parseDeclaratorInto: a]; // parse function args. + } if ([self skipWhiteSpace] < length && buffer[pos] == ')') { [a addObject: @")"]; @@ -256,32 +260,7 @@ } } - /* - * FIXME ... the next code should cope with bracketing and with - * pointers to functions etc. It doesn't! - */ - while ([self skipWhiteSpace] < length) - { - while (buffer[pos] == '*') - { - [a2 addObject: @"*"]; - pos++; - } - if (buffer[pos] == '(') - { - } - s = [self parseIdentifier]; - if ([s isEqualToString: @"const"] || [s isEqualToString: @"volatile"]) - { - [a2 addObject: s]; - } - else - { - break; // Parsed all asterisks, consts, and volatiles - } - } - - declName = s; + declName = [self parseDeclaratorInto: a2]; if (declName == nil) { /*