Minor bugfix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14838 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-10-25 14:54:35 +00:00
parent a2e8e98fc3
commit cff8d711c9
2 changed files with 22 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2002-10-22 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSParser.m: Avoid duplication of method comments when
parsing the same file as both header and source.
2002-10-22 Richard Frith-Macdonald <rfm@gnu.org> 2002-10-22 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSOutput.m: ([-split:]) In links generated from class and * Tools/AGSOutput.m: ([-split:]) In links generated from class and

View file

@ -2484,8 +2484,10 @@ fail:
} }
else if ((exist = [methods objectForKey: token]) != nil) else if ((exist = [methods objectForKey: token]) != nil)
{ {
NSArray *a0; NSArray *a0;
NSArray *a1; NSArray *a1;
NSString *c0;
NSString *c1;
/* /*
* Merge info from implementation into existing version. * Merge info from implementation into existing version.
@ -2519,8 +2521,19 @@ fail:
} }
} }
[self appendComment: [method objectForKey: @"Comment"] /*
to: exist]; * If the old comment from the header parsing is
* the same as the new comment from the source
* parsing, assume we parsed the same file as both
* source and header ... otherwise append the new
* comment.
*/
c0 = [exist objectForKey: @"Comment"];
c1 = [method objectForKey: @"Comment"];
if ([c0 isEqual: c1] == NO)
{
[self appendComment: c1 to: exist];
}
[exist setObject: @"YES" forKey: @"Implemented"]; [exist setObject: @"YES" forKey: @"Implemented"];
} }
break; break;