Comment: | Clean up optional protocols
Now that we can require GCC >= 4.6, we no longer need to have a category |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ba62f00faca3833a745b94527e123fa0 |
User & Date: | js on 2015-11-29 14:20:53 |
Other Links: | manifest | tags |
2015-11-29
| ||
14:23 | Clean up class extensions check-in: 2aca549d60 user: js tags: trunk | |
14:20 | Clean up optional protocols check-in: ba62f00fac user: js tags: trunk | |
14:02 | Make use of fast enumeration check-in: 6b13727ce0 user: js tags: trunk | |
Modified src/OFApplication.h from [91ca5aaec7] to [3d009b0fda].
︙ | |||
41 42 43 44 45 46 47 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | - - | @protocol OFApplicationDelegate <OFObject> /*! * @brief A method which is called when the application was initialized and is * running now. */ - (void)applicationDidFinishLaunching; |
︙ | |||
218 219 220 221 222 223 224 | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | - - - | * @brief Terminates the application with the specified status. * * @param status The status with which the application will terminate */ - (void)terminateWithStatus: (int)status OF_NO_RETURN; @end |
Modified src/OFHTTPClient.h from [ed0609a453] to [b45a098c16].
︙ | |||
32 33 34 35 36 37 38 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - - | /*! * @protocol OFHTTPClientDelegate OFHTTPClient.h ObjFW/OFHTTPClient.h * * @brief A delegate for OFHTTPClient. */ @protocol OFHTTPClientDelegate <OFObject> |
︙ | |||
147 148 149 150 151 152 153 | 145 146 147 148 149 150 151 152 | - - - | /*! * @brief Closes connections that are still open due to keep-alive. */ - (void)close; @end |
Modified src/OFHTTPServer.h from [c2a9a2ca01] to [3703de943a].
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - - | * @param request The request the HTTP server received * @param response The response the server will send to the client */ - (void)server: (OFHTTPServer*)server didReceiveRequest: (OFHTTPRequest*)request response: (OFHTTPResponse*)response; |
︙ | |||
114 115 116 117 118 119 120 | 112 113 114 115 116 117 118 119 | - - - | * @brief Stops the HTTP server, meaning it will not accept any new incoming * connections, but still handle existing connections until they are * finished or timed out. */ - (void)stop; @end |
Modified src/OFKernelEventObserver.h from [9901acfc70] to [44498ce7a3].
︙ | |||
32 33 34 35 36 37 38 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - - | * @protocol OFKernelEventObserverDelegate * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h * * @brief A protocol that needs to be implemented by delegates for * OFKernelEventObserver. */ @protocol OFKernelEventObserverDelegate <OFObject> |
︙ | |||
211 212 213 214 215 216 217 | 209 210 211 212 213 214 215 216 | - - - - | * This is automatically done when a new object is added or removed by another * thread, but in some circumstances, it might be desirable for a thread to * manually stop the observe running in another thread. */ - (void)cancel; @end |
Modified src/OFRunLoop.h from [0b6d167631] to [0570a5632d].
︙ | |||
34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + + + | /*! * @class OFRunLoop OFRunLoop.h ObjFW/OFRunLoop.h * * @brief A class providing a run loop for the application and its processes. */ @interface OFRunLoop: OFObject #ifdef OF_HAVE_SOCKETS <OFKernelEventObserverDelegate> #endif { OFSortedList *_timersQueue; #ifdef OF_HAVE_THREADS OFMutex *_timersQueueLock; #endif #if defined(OF_HAVE_SOCKETS) OFKernelEventObserver *_kernelEventObserver; |
︙ |
Modified src/OFTLSSocket.h from [991f7cbecd] to [48c2664a3c].
︙ | |||
24 25 26 27 28 29 30 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | - - | /*! * @protocol OFTLSSocketDelegate OFTLSSocket.h ObjFW/OFTLSSocket.h * * @brief A delegate for classes implementing the OFTLSSocket protocol. */ @protocol OFTLSSocketDelegate |
︙ |
Modified src/OFXMLElement.m from [767015e338] to [0e6e8212ad].
︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | + | _OFXMLElement_Serialization_reference = 1; } static Class charactersClass = Nil; static Class CDATAClass = Nil; @interface OFXMLElement_OFXMLElementBuilderDelegate: OFObject <OFXMLElementBuilderDelegate> { @public OFXMLElement *_element; } @end @implementation OFXMLElement_OFXMLElementBuilderDelegate |
︙ |
Modified src/OFXMLElementBuilder.h from [697471ead5] to [849e97808f].
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - - - | * * @param builder The builder which built an OFXMLElement * @param element The OFXMLElement the OFXMLElementBuilder built */ - (void)elementBuilder: (OFXMLElementBuilder*)builder didBuildElement: (OFXMLElement*)element; |
︙ | |||
122 123 124 125 126 127 128 | 119 120 121 122 123 124 125 126 | - - - | * @brief Creates a new element builder. * * @return A new, autoreleased OFXMLElementBuilder */ + (instancetype)elementBuilder; @end |
Modified src/OFXMLParser.h from [2c5b933e84] to [76cf63d8b1].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - - | /*! * @protocol OFXMLParserDelegate OFXMLParser.h ObjFW/OFXMLParser.h * * @brief A protocol that needs to be implemented by delegates for OFXMLParser. */ @protocol OFXMLParserDelegate <OFObject> |
︙ | |||
241 242 243 244 245 246 247 | 239 240 241 242 243 244 245 246 | - - - | * @brief Returns whether the XML parser has finished parsing. * * @return Whether the XML parser has finished parsing */ - (bool)hasFinishedParsing; @end |
Modified tests/OFKernelEventObserverTests.m from [c39307bdbd] to [87b1a72a6f].
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - + | #import "TestsAppDelegate.h" #define EXPECTED_EVENTS 3 static OFString *module; |
︙ |
Modified tests/TestsAppDelegate.h from [7b05c7a3ed] to [95d00013c4].
︙ | |||
196 197 198 199 200 201 202 | 196 197 198 199 200 201 202 203 204 205 206 | - + + | - (void)XMLElementBuilderTests; @end @interface TestsAppDelegate (OFXMLNodeTests) - (void)XMLNodeTests; @end |
Modified utils/ofhttp/OFHTTP.m from [bdce356a5d] to [545bac3fa9].
︙ | |||
45 46 47 48 49 50 51 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | - + | #import "ProgressBar.h" #define GIBIBYTE (1024 * 1024 * 1024) #define MEBIBYTE (1024 * 1024) #define KIBIBYTE (1024) |
︙ |