fix suggested vy Daniel Santos

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34253 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-12-06 12:10:37 +00:00
parent 086a4cd7f6
commit 39d1a9f55f
2 changed files with 129 additions and 128 deletions

View file

@ -1,3 +1,8 @@
2011-12-06 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSParser.m: Fix suggested by Daniel Santos (ifStack was
created with incorrect initial content).
2011-12-06 Richard Frith-Macdonald <rfm@gnu.org>
* configure.ac: use pkg-config for libffi if/when available.

View file

@ -175,7 +175,6 @@ in the returned dictionary. */
- (id) init
{
NSMutableCharacterSet *m;
NSMutableSet *s;
m = [[NSCharacterSet controlCharacterSet] mutableCopy];
[m addCharactersInString: @" "];
@ -194,9 +193,7 @@ in the returned dictionary. */
warn = [[NSUserDefaults standardUserDefaults] boolForKey: @"Warn"];
documentInstanceVariables = YES;
ifStack = [[NSMutableArray alloc] initWithCapacity: 4];
s = [NSMutableSet new];
[ifStack addObject: s];
RELEASE(s);
[ifStack addObject: [NSDictionary dictionary]];
return self;
}
@ -3501,7 +3498,6 @@ fail:
{
break; // may only join version macros with &&
}
}
[ifStack addObject: top];
RELEASE(top);