mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
77bd4a2b4f
commit
3aa7189ddb
72 changed files with 537 additions and 429 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue