[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSStream update
From: |
Andrew Ruder |
Subject: |
Re: NSStream update |
Date: |
Sat, 18 Feb 2006 04:01:34 -0600 |
> 2. make the ivar/setter generic somehow ... eg by using a void*
> rather than an int. Actually a windows handle is an unsigned long
> thought I'm not sure it's guaranteed to stay that way ... using void*
> in the generic part should be safe though.
The worst thing about the void * is that the number of warnings
generated on a amd64 machine is pretty staggering on NSStream. I've
included a sample output below. Can't this be done with typedef's?
- Andy
Compiling file NSStream.m ...
NSStream.m: In function '-[GSFileInputStream read:maxLength:]':
NSStream.m:286: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileInputStream propertyForKey:]':
NSStream.m:313: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileInputStream open]':
NSStream.m:330: warning: cast to pointer from integer of different size
NSStream.m: In function '-[GSFileInputStream close]':
NSStream.m:347: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileInputStream
receivedEvent:type:extra:forMode:]':
NSStream.m:427: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketInputStream open]':
NSStream.m:502: warning: cast from pointer to integer of different size
NSStream.m:531: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketInputStream close]':
NSStream.m:549: warning: cast from pointer to integer of different size
NSStream.m:551: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketInputStream read:maxLength:]':
NSStream.m:579: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketInputStream
receivedEvent:type:extra:forMode:]':
NSStream.m:659: warning: cast from pointer to integer of different size
NSStream.m:663: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileOutputStream write:maxLength:]':
NSStream.m:832: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileOutputStream open]':
NSStream.m:862: warning: cast to pointer from integer of different size
NSStream.m: In function '-[GSFileOutputStream close]':
NSStream.m:878: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileOutputStream propertyForKey:]':
NSStream.m:947: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSFileOutputStream
receivedEvent:type:extra:forMode:]':
NSStream.m:968: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketOutputStream write:maxLength:]':
NSStream.m:1030: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketOutputStream open]':
NSStream.m:1058: warning: cast from pointer to integer of different size
NSStream.m:1085: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketOutputStream close]':
NSStream.m:1103: warning: cast from pointer to integer of different size
NSStream.m:1105: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketOutputStream
receivedEvent:type:extra:forMode:]':
NSStream.m:1190: warning: cast from pointer to integer of different size
NSStream.m:1195: warning: cast from pointer to integer of different size
NSStream.m:1234: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketServerStream open]':
NSStream.m:1682: warning: cast from pointer to integer of different size
NSStream.m:1683: warning: cast from pointer to integer of different size
NSStream.m:1690: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketServerStream close]':
NSStream.m:1708: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketServerStream
acceptWithInputStream:outputStream:]':
NSStream.m:1730: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSSocketServerStream
receivedEvent:type:extra:forMode:]':
NSStream.m:1822: warning: cast from pointer to integer of different size
NSStream.m: In function '-[GSInetServerStream initToAddr:port:]':
NSStream.m:1869: warning: cast to pointer from integer of different size
NSStream.m: In function '-[GSInet6ServerStream initToAddr:port:]':
NSStream.m:1912: warning: cast to pointer from integer of different size
NSStream.m: In function '-[GSLocalServerStream initToAddr:]':
NSStream.m:1951: warning: cast to pointer from integer of different size
Linking subproject unix ...