Differences From Artifact [5d50ad0603]:
- File
tests/OFAutoreleasePool/OFAutoreleasePool.m
— part of check-in
[cbdd534337]
at
2009-04-12 14:51:00
on branch trunk
— Get rid of the dependency on Object.
This allows libobjfw to run on ObjC2-only runtimes like the one on the
iPhone. However, it's still relying on objc_msgSendv for plugins, which
is unavailable in ObjC2-only runtimes, thus OFPlugins are unavailable
on the iPhone until I write a replacement for objc_msgSendv. (user: js, size: 1677) [annotate] [blame] [check-ins using]
To Artifact [0365c95fa1]:
- File tests/OFAutoreleasePool/OFAutoreleasePool.m — part of check-in [54850dda81] at 2009-04-19 18:13:18 on branch trunk — Minor cleanups. (user: js, size: 1639) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
32 33 34 35 36 37 38 | @end @implementation TestObject - init { id ret; | | | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | @end @implementation TestObject - init { id ret; ret = init(self, _cmd); printf("New %s with retain cnt " ZD "\n", [self name], [ret retainCount]); return ret; } - retain { id ret; ret = retain(self, _cmd); printf("Retaining %s to " ZD "\n", [self name], [ret retainCount]); return ret; } - (void)release { printf("Releasing %s to " ZD "\n", [self name], [self retainCount] - 1); release(self, _cmd); } @end int main() { init = [OFObject replaceMethod: @selector(init) |
︙ | ︙ |