mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
84c68e4766
commit
e21c6b4dba
3 changed files with 63 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue