mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Ignore forward declaration of protocol
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16645 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
edcf3679b1
commit
f07090eb44
2 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
* Source/NSData.m: Remove windows specific code for simplification
|
* Source/NSData.m: Remove windows specific code for simplification
|
||||||
as the standard code actually works as well or better according to
|
as the standard code actually works as well or better according to
|
||||||
<Roland.Schwingel@onevision.de>
|
<Roland.Schwingel@onevision.de>
|
||||||
|
* Tools/AGSParser.m: Ignore forward declarations of protocols.
|
||||||
|
|
||||||
2003-05-05 15:28 Alexander Malmberg <alexander@malmberg.org>
|
2003-05-05 15:28 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
|
|
@ -2910,6 +2910,18 @@ fail:
|
||||||
[self log: @"protocol with bad name"];
|
[self log: @"protocol with bad name"];
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If there is a comma, this must be a forward declaration of a list
|
||||||
|
* of protocols ... so we can ignore it. Otherwise, if we found a
|
||||||
|
* semicolon, we have a single forward declaration to ignore.
|
||||||
|
*/
|
||||||
|
if (pos < length && (buffer[pos] == ',' || buffer[pos] == ';'))
|
||||||
|
{
|
||||||
|
[self skipStatement];
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
[dict setObject: name forKey: @"Name"];
|
[dict setObject: name forKey: @"Name"];
|
||||||
[self setStandards: dict];
|
[self setStandards: dict];
|
||||||
unitName = [NSString stringWithFormat: @"(%@)", name];
|
unitName = [NSString stringWithFormat: @"(%@)", name];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue