diff --git a/ChangeLog b/ChangeLog index 7933557ee..e8305585a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 10 10:45:00 2000 Richard Frith-Macdonald + + * GSDoc/gsdoc-0_6_5.dtd: Altered to add standard conformance to + individual methods and to make standards rigorous. + * GSDoc/gsdoc.m: Updated for changes to dtd. + Thu Mar 09 18:07:00 2000 Richard Frith-Macdonald * Source/NSAttributedString.m: Varius bugfixes. diff --git a/GSDoc/gsdoc-0_6_5.dtd b/GSDoc/gsdoc-0_6_5.dtd index d7d7e02f5..30fb8b5ff 100644 --- a/GSDoc/gsdoc-0_6_5.dtd +++ b/GSDoc/gsdoc-0_6_5.dtd @@ -189,6 +189,17 @@ id CDATA #REQUIRED > + + + + + + + + + + + @@ -214,7 +225,7 @@ superclass. If factory not set, instance method --> - + - - - - + - + - + - + - + - + - + name, "desc") == 0) + { + desc = [self parseDesc: node]; + node = node->next; + } if (node != 0) { - if (strcmp(node->name, "desc") == 0) - { - desc = [self parseDesc: node]; - } - else - { - NSLog(@"Unexpected node in method definition - %s", node->name); - return nil; - } + standards = [self parseStandards: node]; } + if (factory) { NSString *s = [@"+" stringByAppendingString: sText]; @@ -1826,6 +1826,18 @@ loader(const char *url, const char* eid, xmlParserCtxtPtr *ctxt) [text appendString: @"Your subclass must not override this " @"method.
\r\n"]; } + if ([standards count] > 0) + { + unsigned i; + + [text appendString: @"Standards:"]; + for (i = 0; i < [standards count]; i++) + { + [text appendString: @" "]; + [text appendString: [standards objectAtIndex: i]]; + } + [text appendString: @"
\r\n"]; + } if (desc != nil) { @@ -1836,6 +1848,30 @@ loader(const char *url, const char* eid, xmlParserCtxtPtr *ctxt) return text; } +- (NSArray*) parseStandards: (xmlNodePtr)node +{ + if (node != 0) + { + if (strcmp(node->name, "standards") == 0) + { + NSMutableArray *a = [NSMutableArray array]; + + node = node->childs; + while (node != 0 && node->name != 0) + { + [a addObject: [NSString stringWithCString: node->name]]; + node = node->next; + } + return a; + } + else + { + NSLog(@"Unexpected node in method definition - %s", node->name); + } + } + return nil; +} + - (NSString*) parseText: (xmlNodePtr)node { NSMutableString *text = [NSMutableString string];