Overview
Comment: | Small changes to OF_SETTER/OF_GETTER. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
9e2ea02a083e12ec9ddbdbac347908ce |
User & Date: | js on 2011-06-07 14:10:20 |
Other Links: | manifest | tags |
Context
2011-06-10
| ||
18:19 | Save 16 bytes per object on 64 bit systems with a 16 byte alignment. check-in: def4850926 user: js tags: trunk | |
2011-06-07
| ||
14:10 | Small changes to OF_SETTER/OF_GETTER. check-in: 9e2ea02a08 user: js tags: trunk | |
2011-06-06
| ||
16:28 | Use memset() for indentation in OFXMLElement. check-in: af23d890f1 user: js tags: trunk | |
Changes
Modified src/OFStreamObserver.m from [4fa877dddd] to [7f19030bfc].
︙ | ︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | # import "OFTCPSocket.h" #endif #import "OFAutoreleasePool.h" #import "OFInitializationFailedException.h" #import "OFOutOfRangeException.h" #ifdef _WIN32 # define close(sock) closesocket(sock) #endif enum { QUEUE_ADD = 0, QUEUE_REMOVE = 1, | > > | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | # import "OFTCPSocket.h" #endif #import "OFAutoreleasePool.h" #import "OFInitializationFailedException.h" #import "OFOutOfRangeException.h" #import "macros.h" #ifdef _WIN32 # define close(sock) closesocket(sock) #endif enum { QUEUE_ADD = 0, QUEUE_REMOVE = 1, |
︙ | ︙ | |||
159 160 161 162 163 164 165 | close(cancelFD[1]); [super finalize]; } - (id <OFStreamObserverDelegate>)delegate { | | < < | | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | close(cancelFD[1]); [super finalize]; } - (id <OFStreamObserverDelegate>)delegate { OF_GETTER(delegate, YES) } - (void)setDelegate: (id <OFStreamObserverDelegate>)delegate_ { OF_SETTER(delegate, delegate_, YES, NO) } #ifdef OF_HAVE_POLL - (void)_addStream: (OFStream*)stream withEvents: (short)events { struct pollfd *FDsCArray = [FDs cArray]; |
︙ | ︙ |
Modified src/macros.h from [9c903dee26] to [3b292be428].
︙ | ︙ | |||
73 74 75 76 77 78 79 | #ifndef _WIN32 # define OF_PATH_DELIM '/' #else # define OF_PATH_DELIM '\\' #endif | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #ifndef _WIN32 # define OF_PATH_DELIM '/' #else # define OF_PATH_DELIM '\\' #endif #define OF_IVAR_OFFSET(ivar) ((intptr_t)&ivar - (intptr_t)self) #define OF_GETTER(ivar, atomic) \ return objc_getProperty(self, _cmd, OF_IVAR_OFFSET(ivar), atomic); #define OF_SETTER(ivar, value, atomic, copy) \ objc_setProperty(self, _cmd, OF_IVAR_OFFSET(ivar), value, atomic, copy); static OF_INLINE uint16_t OF_CONST_FUNC of_bswap16_const(uint16_t i) |
︙ | ︙ |