mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
add array 'informalProtocols' to accumulate informal protocols as they are found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
61b2b50b3b
commit
34bc37b5c4
2 changed files with 11 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
NSCharacterSet *spaces; // All blank characters
|
NSCharacterSet *spaces; // All blank characters
|
||||||
NSCharacterSet *spacenl; // Blanks excluding newline
|
NSCharacterSet *spacenl; // Blanks excluding newline
|
||||||
NSArray *args; // Not retained.
|
NSArray *args; // Not retained.
|
||||||
|
NSMutableArray *informalProtocols; // built up as discovered
|
||||||
BOOL verbose;
|
BOOL verbose;
|
||||||
BOOL warn;
|
BOOL warn;
|
||||||
}
|
}
|
||||||
|
@ -62,5 +63,6 @@
|
||||||
withIndent: (unsigned)ind
|
withIndent: (unsigned)ind
|
||||||
to: (NSMutableString*)buf;
|
to: (NSMutableString*)buf;
|
||||||
- (NSArray*) split: (NSString*)str;
|
- (NSArray*) split: (NSString*)str;
|
||||||
|
- (NSArray*) informalProtocols;
|
||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -131,6 +131,7 @@ static BOOL snuggleStart(NSString *t)
|
||||||
DESTROY(identStart);
|
DESTROY(identStart);
|
||||||
DESTROY(spaces);
|
DESTROY(spaces);
|
||||||
DESTROY(spacenl);
|
DESTROY(spacenl);
|
||||||
|
DESTROY(informalProtocols);
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,6 +232,7 @@ static BOOL snuggleStart(NSString *t)
|
||||||
@"_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"]);
|
@"_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"]);
|
||||||
identStart = RETAIN([NSCharacterSet characterSetWithCharactersInString:
|
identStart = RETAIN([NSCharacterSet characterSetWithCharactersInString:
|
||||||
@"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"]);
|
@"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"]);
|
||||||
|
informalProtocols = [NSMutableArray new];
|
||||||
verbose = [[NSUserDefaults standardUserDefaults] boolForKey: @"Verbose"];
|
verbose = [[NSUserDefaults standardUserDefaults] boolForKey: @"Verbose"];
|
||||||
warn = [[NSUserDefaults standardUserDefaults] boolForKey: @"Warn"];
|
warn = [[NSUserDefaults standardUserDefaults] boolForKey: @"Warn"];
|
||||||
|
|
||||||
|
@ -1177,6 +1179,8 @@ static BOOL snuggleStart(NSString *t)
|
||||||
{
|
{
|
||||||
[m setObject: @"YES" forKey: @"Implemented"];
|
[m setObject: @"YES" forKey: @"Implemented"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[informalProtocols addObject: name];
|
||||||
}
|
}
|
||||||
else if (warn == YES)
|
else if (warn == YES)
|
||||||
{
|
{
|
||||||
|
@ -2237,6 +2241,11 @@ static BOOL snuggleStart(NSString *t)
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSArray*) informalProtocols
|
||||||
|
{
|
||||||
|
return informalProtocols;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue