protocol stuf added

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14728 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-12 04:44:35 +00:00
parent 639a522a6c
commit 966ccd7ebf

View file

@ -1174,6 +1174,27 @@
[d setObject: t forKey: @"BaseType"];
RELEASE(t);
/*
* Handle protocol specification if necessary
*/
if ([self parseSpace] < length && buffer[pos] == '<')
{
NSString *p;
pos++;
do
{
p = [self parseIdentifier];
[a addObject: p];
}
while ([self parseSpace] < length && buffer[pos] == ',');
pos++;
[self parseSpace];
[a sortUsingSelector: @selector(compare:)];
[d setObject: [a componentsJoinedByString: @","] forKey: @"Protocols"];
[a removeAllObjects];
}
/*
* Set the 'Kind' of declaration ... one of 'Types', 'Functions',
* 'Variables', or 'Constants'