mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
MacOS-X compatibility stuff.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7495 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eb642b39e2
commit
9f18a77807
5 changed files with 124 additions and 46 deletions
|
@ -731,7 +731,6 @@ nodeToObject(GSXMLNode* node)
|
|||
id val;
|
||||
|
||||
val = nodeToObject(children);
|
||||
NSLog(@"Array item %@", [children name], val);
|
||||
[container addObject: val];
|
||||
children = elementNode([children next]);
|
||||
}
|
||||
|
@ -747,10 +746,8 @@ NSLog(@"Array item %@", [children name], val);
|
|||
id val;
|
||||
|
||||
key = nodeToObject(children);
|
||||
NSLog(@"Key name (%@) %@", [children name], key);
|
||||
children = elementNode([children next]);
|
||||
val = nodeToObject(children);
|
||||
NSLog(@"Val name (%@) %@", [children name], val);
|
||||
children = elementNode([children next]);
|
||||
[container setObject: val forKey: key];
|
||||
}
|
||||
|
@ -783,7 +780,6 @@ static id parsePl(pldata* pld)
|
|||
memcpy(buf, pld->ptr, pld->end);
|
||||
buf[pld->end] = '\0';
|
||||
data = [NSData dataWithBytesNoCopy: buf length: pld->end+1];
|
||||
NSLog(@"Parsing '%s'", buf);
|
||||
parser = [GSXMLParser parser: data];
|
||||
if ([parser parse] == YES)
|
||||
{
|
||||
|
@ -793,7 +789,7 @@ static id parsePl(pldata* pld)
|
|||
[[[parser doc] root] name]);
|
||||
return nil;
|
||||
}
|
||||
return nodeToObject([[[parser doc] root] children]);
|
||||
return RETAIN(nodeToObject([[[parser doc] root] children]));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue