mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
avoid some compiler warnings
fix oen inforrect use of ansi mingw function git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e6fd4ca0d1
commit
38e23cc6cb
5 changed files with 55 additions and 21 deletions
|
@ -53,11 +53,6 @@
|
|||
#define UNISTR(X) \
|
||||
((const unichar*)[(X) cStringUsingEncoding: NSUnicodeStringEncoding])
|
||||
|
||||
/*
|
||||
* Largest chunk of data possible in DO
|
||||
*/
|
||||
static gsu32 maxDataLength = 10 * 1024 * 1024;
|
||||
|
||||
#if 0
|
||||
#define M_LOCK(X) {NSDebugMLLog(@"NSMessagePort",@"lock %@",X); [X lock];}
|
||||
#define M_UNLOCK(X) {NSDebugMLLog(@"NSMessagePort",@"unlock %@",X); [X unlock];}
|
||||
|
@ -104,6 +99,13 @@ typedef struct {
|
|||
unsigned char addr[0]; /* name of the port on the local host */
|
||||
} GSPortInfo;
|
||||
|
||||
#if 0
|
||||
|
||||
/*
|
||||
* Largest chunk of data possible in DO
|
||||
*/
|
||||
static gsu32 maxDataLength = 10 * 1024 * 1024;
|
||||
|
||||
/*
|
||||
* Utility functions for encoding and decoding ports.
|
||||
*/
|
||||
|
@ -153,6 +155,7 @@ newDataWithEncodedPort(NSMessagePort *port)
|
|||
return data;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@implementation NSMessagePort
|
||||
|
||||
|
@ -428,7 +431,6 @@ static unsigned wordAlign;
|
|||
extra: (void*)extra
|
||||
forMode: (NSString*)mode
|
||||
{
|
||||
HANDLE h = (HANDLE)(gsaddr)extra;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue