mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Added some property list parsing fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
70d9f361be
commit
6e5edd5259
10 changed files with 211 additions and 125 deletions
|
@ -100,9 +100,11 @@ static void debugRead(NSData *data)
|
|||
d = open(debugFile, O_WRONLY|O_CREAT|O_APPEND, 0644);
|
||||
if (d >= 0)
|
||||
{
|
||||
s = [NSString stringWithFormat: @"\nRead %@ -\n", [NSDate date]];
|
||||
s = [NSString stringWithFormat: @"\nRead %@ %u bytes - '",
|
||||
[NSDate date], [data length]];
|
||||
write(d, [s cString], [s cStringLength]);
|
||||
write(d, [data bytes], [data length]);
|
||||
write(d, "'", 1);
|
||||
close(d);
|
||||
}
|
||||
[debugLock unlock];
|
||||
|
@ -116,9 +118,11 @@ static void debugWrite(NSData *data)
|
|||
d = open(debugFile, O_WRONLY|O_CREAT|O_APPEND, 0644);
|
||||
if (d >= 0)
|
||||
{
|
||||
s = [NSString stringWithFormat: @"\nWrite %@ -\n", [NSDate date]];
|
||||
s = [NSString stringWithFormat: @"\nWrite %@ %u bytes - '",
|
||||
[NSDate date], [data length]];
|
||||
write(d, [s cString], [s cStringLength]);
|
||||
write(d, [data bytes], [data length]);
|
||||
write(d, "'", 1);
|
||||
close(d);
|
||||
}
|
||||
[debugLock unlock];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue