Improve MacOS-X compatibility of headers.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25638 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-11-29 20:53:26 +00:00
parent 77bd4a2b4f
commit 3aa7189ddb
72 changed files with 537 additions and 429 deletions

View file

@ -72,11 +72,15 @@ GS_EXPORT NSString * const GSTelnetTextKey;
if (i > 0 && ptr[i-1] == '\r')
{
s = [NSString stringWithUTF8String: ptr length: i-1];
s = [[NSString alloc] initWithBytes: ptr
length: i-1
encoding: NSUTF8StringEncoding];
}
else
{
s = [NSString stringWithUTF8String: ptr length: i];
s = [[NSString alloc] initWithBytes: ptr
length: i
encoding: NSUTF8StringEncoding];
}
len -= (i + 1);
if (len > 0)
@ -87,6 +91,7 @@ GS_EXPORT NSString * const GSTelnetTextKey;
ptr = [buf mutableBytes];
i = -1;
[remote putTelnetLine: s];
[s release];
}
}
[ichan readInBackgroundAndNotify];