Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12001 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-01-06 09:52:45 +00:00
parent 84c68e4766
commit e21c6b4dba
3 changed files with 63 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2002-01-06 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/autogsdoc.m: Minor bugfix ... any .h file processed should
also be processed as a .gsdoc file to produce indexes and html.
2002-01-05 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/autogsdoc.m: Simplify by removing SourceDirectory default.

View file

@ -481,6 +481,59 @@ fail:
return nil;
}
/*
- (NSString*) parseType
{
NSMutableString *m;
NSString *s;
BOOL hadName = NO;
s = [self parseIdentifier];
if (s == nil)
{
return nil;
}
m = [NSMutableString string];
[m appendString: s];
if ([qualifiers member: s] == nil)
{
hadName = YES;
}
[self skipWhiteSpace];
while (pos < length)
{
unsigned saved;
BOOL hadStar = NO;
while (pos < length && buffer[pos] == '*')
{
if (hadStar == NO)
{
[m appendString: @" "];
hadStar = YES;
}
[m appendString: @"*"];
pos++;
[self skipWhiteSpace];
}
saved = pos;
s = [self parseIdentifier];
if ([qualifiers member: s] == nil)
{
if (hadName == YES)
{
pos = saved;
break;
}
hadName = YES;
}
[m appendString: @" "];
[m appendString: s];
}
return m;
}
*/
- (NSString*) parseIdentifier
{
unsigned start;

View file

@ -632,15 +632,12 @@ main(int argc, char **argv, char **env)
{
NSLog(@"Sorry unable to write %@", gsdocfile);
}
else
{
/*
* Add the newly created gsdoc file to the list of
* those to process.
*/
[gFiles addObject: [gsdocfile lastPathComponent]];
}
}
/*
* Add the gsdoc file corresponding to the .h file to the list of
* those to process.
*/
[gFiles addObject: [gsdocfile lastPathComponent]];
}
DESTROY(pool);
DESTROY(parser);