mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fixed visibility -> validity to match dtd
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15164 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bb19b604d0
commit
20e79d31bc
1 changed files with 8 additions and 8 deletions
|
@ -1964,7 +1964,7 @@ try:
|
|||
|
||||
- (NSMutableDictionary*) parseInstanceVariables
|
||||
{
|
||||
NSString *visibility = @"private";
|
||||
NSString *validity = @"private";
|
||||
NSMutableDictionary *ivars;
|
||||
BOOL shouldDocument = documentAllInstanceVariables;
|
||||
|
||||
|
@ -1984,27 +1984,27 @@ try:
|
|||
if ((token = [self parseIdentifier]) == nil
|
||||
|| [self parseSpace] >= length)
|
||||
{
|
||||
[self log: @"interface with bad visibility directive"];
|
||||
[self log: @"interface with bad validity directive"];
|
||||
goto fail;
|
||||
}
|
||||
if ([token isEqual: @"private"] == YES)
|
||||
{
|
||||
ASSIGN(visibility, token);
|
||||
ASSIGN(validity, token);
|
||||
shouldDocument = documentAllInstanceVariables;
|
||||
}
|
||||
else if ([token isEqual: @"protected"] == YES)
|
||||
{
|
||||
ASSIGN(visibility, token);
|
||||
ASSIGN(validity, token);
|
||||
shouldDocument = YES;
|
||||
}
|
||||
else if ([token isEqual: @"public"] == YES)
|
||||
{
|
||||
ASSIGN(visibility, token);
|
||||
ASSIGN(validity, token);
|
||||
shouldDocument = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
[self log: @"interface with bad visibility (%@)", token];
|
||||
[self log: @"interface with bad validity (%@)", token];
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
@ -2019,7 +2019,7 @@ try:
|
|||
|
||||
if (iv != nil)
|
||||
{
|
||||
if ([visibility isEqual: @"private"] == NO)
|
||||
if ([validity isEqual: @"private"] == NO)
|
||||
{
|
||||
NSString *n = [iv objectForKey: @"Name"];
|
||||
|
||||
|
@ -2035,7 +2035,7 @@ try:
|
|||
[self appendComment: c to: iv];
|
||||
}
|
||||
}
|
||||
[iv setObject: visibility forKey: @"Visibility"];
|
||||
[iv setObject: validity forKey: @"Validity"];
|
||||
[ivars setObject: iv forKey: [iv objectForKey: @"Name"]];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue