mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
???
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12077 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3443d265b1
commit
7238052daa
1 changed files with 5 additions and 26 deletions
|
@ -138,6 +138,10 @@
|
||||||
[a addObject: @"("];
|
[a addObject: @"("];
|
||||||
pos++;
|
pos++;
|
||||||
result = [self parseDeclaratorInto: a];
|
result = [self parseDeclaratorInto: a];
|
||||||
|
if ([self skipWhiteSpace] < length && buffer[pos] == '(')
|
||||||
|
{
|
||||||
|
[self parseDeclaratorInto: a]; // parse function args.
|
||||||
|
}
|
||||||
if ([self skipWhiteSpace] < length && buffer[pos] == ')')
|
if ([self skipWhiteSpace] < length && buffer[pos] == ')')
|
||||||
{
|
{
|
||||||
[a addObject: @")"];
|
[a addObject: @")"];
|
||||||
|
@ -256,32 +260,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
declName = [self parseDeclaratorInto: a2];
|
||||||
* 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;
|
|
||||||
if (declName == nil)
|
if (declName == nil)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue