mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
merge back reorganisation branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29615 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6bf6ec959b
commit
21d597e740
263 changed files with 5577 additions and 4170 deletions
|
@ -25,6 +25,9 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#define EXPOSE_NSPipe_IVARS 1
|
||||
|
||||
#include "GNUstepBase/preface.h"
|
||||
#include "Foundation/NSObject.h"
|
||||
#include "Foundation/NSFileHandle.h"
|
||||
|
@ -57,8 +60,8 @@
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(readHandle);
|
||||
RELEASE(writeHandle);
|
||||
RELEASE(_readHandle);
|
||||
RELEASE(_writeHandle);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -72,10 +75,10 @@
|
|||
|
||||
if (pipe(p) == 0)
|
||||
{
|
||||
readHandle = [[NSFileHandle alloc] initWithFileDescriptor: p[0]
|
||||
closeOnDealloc: YES];
|
||||
writeHandle = [[NSFileHandle alloc] initWithFileDescriptor: p[1]
|
||||
_readHandle = [[NSFileHandle alloc] initWithFileDescriptor: p[0]
|
||||
closeOnDealloc: YES];
|
||||
_writeHandle = [[NSFileHandle alloc] initWithFileDescriptor: p[1]
|
||||
closeOnDealloc: YES];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -92,10 +95,10 @@
|
|||
|
||||
if (CreatePipe(&readh, &writeh, &saAttr, 0) != 0)
|
||||
{
|
||||
readHandle = [[NSFileHandle alloc] initWithNativeHandle: readh
|
||||
closeOnDealloc: YES];
|
||||
writeHandle = [[NSFileHandle alloc] initWithNativeHandle: writeh
|
||||
_readHandle = [[NSFileHandle alloc] initWithNativeHandle: readh
|
||||
closeOnDealloc: YES];
|
||||
_writeHandle = [[NSFileHandle alloc] initWithNativeHandle: writeh
|
||||
closeOnDealloc: YES];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -112,7 +115,7 @@
|
|||
*/
|
||||
- (NSFileHandle*) fileHandleForReading
|
||||
{
|
||||
return readHandle;
|
||||
return _readHandle;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -120,7 +123,7 @@
|
|||
*/
|
||||
- (NSFileHandle*) fileHandleForWriting
|
||||
{
|
||||
return writeHandle;
|
||||
return _writeHandle;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue