Overview
Comment: | Add support for ObjFW-RT, the ObjFW Objective C runtime. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8c2755723a927b63e404051778bac0c0 |
User & Date: | js on 2010-04-01 23:51:01 |
Other Links: | manifest | tags |
Context
2010-04-02
| ||
14:18 | Close socket before throwing an exception when bind fails. check-in: ebf57f4891 user: js tags: trunk | |
2010-04-01
| ||
23:51 | Add support for ObjFW-RT, the ObjFW Objective C runtime. check-in: 8c2755723a user: js tags: trunk | |
22:18 | Merge to fix wrong parent. check-in: ab2f572dd8 user: js tags: trunk | |
Changes
Modified configure.ac from [94497d816e] to [fea6d80c3f].
︙ | |||
10 11 12 13 14 15 16 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - | AC_PROG_INSTALL AC_PROG_EGREP CPP="$OBJCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS" OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstString" |
︙ | |||
53 54 55 56 57 58 59 60 | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | [foo bar]; ], [ AC_DEFINE(OF_HAVE_PROPERTIES, 1, [Compiler support for properties]) AC_SUBST(PROPERTIES_M, "properties.m") AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no)]) AC_CHECK_HEADERS([objfw-rt.h objc/objc.h]) |
︙ | |||
372 373 374 375 376 377 378 | 396 397 398 399 400 401 402 403 404 405 406 407 408 409 | + + + + + + + | AC_SUBST(CPP) AC_SUBST(CPPFLAGS) AC_SUBST(PACKAGE, ObjFW) AC_CONFIG_FILES([buildsys.mk extra.mk objfw-config]) AC_CONFIG_HEADERS([config.h src/objfw-defs.h]) AC_OUTPUT if test x"$objc_runtime" = x"GNU"; then echo echo "Warning: You are using GNU libobjc! Support for GNU libobjc will " echo "be dropped in the next version! You should upgrade to ObjFW-RT" echo "(the ObjFW runtime) instead!" fi |
Modified objfw-config.in from [6e584c777b] to [6c5e0d875b].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | + - + | #!/bin/sh prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" CFLAGS="" CPPFLAGS="-I@includedir@" CXXFLAGS="" OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions" |
︙ |
Modified src/OFExceptions.m from [10534da3ea] to [fc53fd3cfe].
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | - - - - + + + + + + | #include "config.h" #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> |
︙ | |||
240 241 242 243 244 245 246 | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | - + | - (OFString*)string { if (string != nil) return string; string = [[OFString alloc] initWithFormat: @"The method %s of class %s is not or not fully implemented!", |
︙ | |||
290 291 292 293 294 295 296 | 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | - + | - (OFString*)string { if (string != nil) return string; string = [[OFString alloc] initWithFormat: @"The argument for method %s of class %s is invalid!", |
︙ |
Modified src/OFObject.h from [d59ecc6081] to [2662d5b8c3].
︙ | |||
10 11 12 13 14 15 16 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + - + + | */ #import "objfw-defs.h" #include <stddef.h> #include <stdint.h> #ifdef OF_OBJFW_RUNTIME # import <objfw-rt.h> #else |
︙ |
Modified src/OFObject.m from [95a9dc34dd] to [6d2f924ac1].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + - - + + + - - + + - + | #include <assert.h> #import "OFObject.h" #import "OFAutoreleasePool.h" #import "OFExceptions.h" #import "macros.h" #if defined(OF_OBJFW_RUNTIME) |
︙ | |||
179 180 181 182 183 184 185 | 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | - - + + - + - + - - - - - - - - + + + + + + + + + + - + + + - + | + (Class)superclass { return class_getSuperclass(self); } + (BOOL)instancesRespondToSelector: (SEL)selector { |
︙ | |||
257 258 259 260 261 262 263 | 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | + + - + + + - + | } + (IMP)replaceClassMethod: (SEL)selector withClassMethodFromClass: (Class)class; { IMP newimp; #if defined(OF_OBJFW_RUNTIME) newimp = objc_get_class_method(class, selector); |
︙ | |||
305 306 307 308 309 310 311 | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | + + - + | } + (IMP)replaceInstanceMethod: (SEL)selector withInstanceMethodFromClass: (Class)class; { IMP newimp; #if defined(OF_OBJFW_RUNTIME) newimp = objc_get_instance_method(class, selector); |
︙ | |||
327 328 329 330 331 332 333 | 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | - - + + - + - + - - + + - - + - - | - (Class)class { return isa; } - (const char*)className { |
︙ |
Modified src/objc_sync.m from [557c8959b1] to [a4f4af841a].
︙ | |||
11 12 13 14 15 16 17 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + + + - + + | #include "config.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #ifdef OF_OBJFW_RUNTIME # import <objfw-rt.h> #else |
︙ |
Modified src/objfw-defs.h.in from [e92fcadc33] to [216453ffb3].
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + | #undef OF_APPLE_RUNTIME #undef OF_ATOMIC_OPS #undef OF_BIG_ENDIAN #undef OF_GNU_RUNTIME #undef OF_HAVE_ASPRINTF #undef OF_HAVE_GCC_ATOMIC_OPS #undef OF_HAVE_LIBKERN_OSATOMIC_H #undef OF_HAVE_PTHREADS #undef OF_HAVE_PTHREAD_SPINLOCKS #undef OF_HAVE_SCHED_YIELD #undef OF_OBJFW_RUNTIME #undef OF_PLUGINS #undef OF_THREADS #undef SIZE_MAX |