From 34bc37b5c4c46a6ad8616bc35e237345f250a715 Mon Sep 17 00:00:00 2001 From: arobert Date: Sun, 19 Sep 2004 23:05:09 +0000 Subject: [PATCH] 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 --- Tools/AGSOutput.h | 2 ++ Tools/AGSOutput.m | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Tools/AGSOutput.h b/Tools/AGSOutput.h index 463f39b47..59eeb9c76 100644 --- a/Tools/AGSOutput.h +++ b/Tools/AGSOutput.h @@ -32,6 +32,7 @@ NSCharacterSet *spaces; // All blank characters NSCharacterSet *spacenl; // Blanks excluding newline NSArray *args; // Not retained. + NSMutableArray *informalProtocols; // built up as discovered BOOL verbose; BOOL warn; } @@ -62,5 +63,6 @@ withIndent: (unsigned)ind to: (NSMutableString*)buf; - (NSArray*) split: (NSString*)str; +- (NSArray*) informalProtocols; @end #endif diff --git a/Tools/AGSOutput.m b/Tools/AGSOutput.m index 44d17af18..6c12d2653 100644 --- a/Tools/AGSOutput.m +++ b/Tools/AGSOutput.m @@ -131,6 +131,7 @@ static BOOL snuggleStart(NSString *t) DESTROY(identStart); DESTROY(spaces); DESTROY(spacenl); + DESTROY(informalProtocols); [super dealloc]; } @@ -231,6 +232,7 @@ static BOOL snuggleStart(NSString *t) @"_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"]); identStart = RETAIN([NSCharacterSet characterSetWithCharactersInString: @"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"]); + informalProtocols = [NSMutableArray new]; verbose = [[NSUserDefaults standardUserDefaults] boolForKey: @"Verbose"]; warn = [[NSUserDefaults standardUserDefaults] boolForKey: @"Warn"]; @@ -1177,6 +1179,8 @@ static BOOL snuggleStart(NSString *t) { [m setObject: @"YES" forKey: @"Implemented"]; } + + [informalProtocols addObject: name]; } else if (warn == YES) { @@ -2237,6 +2241,11 @@ static BOOL snuggleStart(NSString *t) return a; } +- (NSArray*) informalProtocols +{ + return informalProtocols; +} + @end