mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
revert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36899 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
667ca3b715
commit
a18df9e51c
1 changed files with 6 additions and 14 deletions
|
@ -787,15 +787,7 @@ static inline id parseQuotedString(pldata* pld)
|
|||
}
|
||||
if (pld->pos - start - shrink == 0)
|
||||
{
|
||||
if (pld->key == NO
|
||||
&& pld->opt == NSPropertyListMutableContainersAndLeaves)
|
||||
{
|
||||
obj = [GSMutableString new];
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = @"";
|
||||
}
|
||||
obj = @"";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -900,8 +892,8 @@ static inline id parseQuotedString(pldata* pld)
|
|||
NSZoneFree(NSDefaultMallocZone(), temp);
|
||||
length = k;
|
||||
|
||||
if (pld->key == NO
|
||||
&& pld->opt == NSPropertyListMutableContainersAndLeaves)
|
||||
if (pld->key ==
|
||||
NO && pld->opt == NSPropertyListMutableContainersAndLeaves)
|
||||
{
|
||||
obj = [GSMutableString alloc];
|
||||
obj = [obj initWithCharactersNoCopy: chars
|
||||
|
@ -910,7 +902,7 @@ static inline id parseQuotedString(pldata* pld)
|
|||
}
|
||||
else
|
||||
{
|
||||
obj = [GSString alloc];
|
||||
obj = [GSMutableString alloc];
|
||||
obj = [obj initWithCharactersNoCopy: chars
|
||||
length: length
|
||||
freeWhenDone: YES];
|
||||
|
@ -951,7 +943,7 @@ static inline id parseUnquotedString(pldata *pld)
|
|||
}
|
||||
else
|
||||
{
|
||||
obj = [GSString alloc];
|
||||
obj = [GSMutableString alloc];
|
||||
obj = [obj initWithCharactersNoCopy: chars
|
||||
length: length
|
||||
freeWhenDone: YES];
|
||||
|
@ -1286,7 +1278,7 @@ static id parsePlItem(pldata* pld)
|
|||
if (skipSpace(pld) == YES)
|
||||
{
|
||||
pld->err = @"extra data after parsed string";
|
||||
DESTROY(result); // Not at end of string.
|
||||
result = nil; // Not at end of string.
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue