1 | | diff -rupN Modules-original/objc/objc-runtime-compat.m Modules/objc/objc-runtime-compat.m |
2 | | --- Modules-original/objc/objc-runtime-compat.m 2009-05-25 03:56:04.000000000 +0900 |
3 | | +++ Modules/objc/objc-runtime-compat.m 2012-05-12 01:43:46.000000000 +0900 |
4 | | @@ -981,27 +981,4 @@ size_t PyObjC_methodlist_magic(Class cls |
5 | | |
6 | | #endif |
7 | | |
8 | | -#if defined(__x86_64__) |
9 | | |
10 | | -@implementation Protocol (NSOBjectCompat) |
11 | | -- self |
12 | | -{ |
13 | | - return self; |
14 | | -} |
15 | | -@end |
16 | | - |
17 | | -@implementation Object (NSOBjectCompat) |
18 | | -- self |
19 | | -{ |
20 | | - return self; |
21 | | -} |
22 | | - |
23 | | --doesNotRecognizeSelector:(SEL)sel |
24 | | -{ |
25 | | - printf("--> %s\n", sel_getName(sel)); |
26 | | - abort(); |
27 | | -} |
28 | | -@end |
29 | | - |
30 | | - |
31 | | -#endif |
32 | | diff -rupN Modules-original/objc/objc_support.m Modules/objc/objc_support.m |
33 | | --- Modules-original/objc/objc_support.m 2010-06-30 05:28:09.000000000 +0900 |
34 | | +++ Modules/objc/objc_support.m 2012-05-12 01:46:11.000000000 +0900 |
35 | | @@ -150,68 +150,7 @@ |
36 | | -(PyObject*)__pyobjc_PythonTransient__:(int*)cookie; |
37 | | @end /* PyObjCSupport */ |
38 | | |
39 | | -@implementation Protocol (PyObjCSupport) |
40 | | |
41 | | --(PyObject*)__pyobjc_PythonObject__ |
42 | | -{ |
43 | | - PyObject *rval; |
44 | | - |
45 | | - rval = PyObjC_FindPythonProxy(self); |
46 | | - if (rval == NULL) { |
47 | | - rval = PyObjCFormalProtocol_ForProtocol(self); |
48 | | - } |
49 | | - return rval; |
50 | | -} |
51 | | - |
52 | | --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie |
53 | | -{ |
54 | | - PyObject *rval; |
55 | | - |
56 | | - *cookie = 0; |
57 | | - rval = PyObjC_FindPythonProxy(self); |
58 | | - if (rval == NULL) { |
59 | | - rval = PyObjCFormalProtocol_ForProtocol(self); |
60 | | - } |
61 | | - return rval; |
62 | | -} |
63 | | - |
64 | | -@end /* PyObjCSupport */ |
65 | | - |
66 | | -@interface Object (PyObjCSupport) |
67 | | --(PyObject*)__pyobjc_PythonObject__; |
68 | | --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie; |
69 | | -@end /* PyObjCSupport */ |
70 | | - |
71 | | -@implementation Object (PyObjCSupport) |
72 | | - |
73 | | --(PyObject*)__pyobjc_PythonObject__ |
74 | | -{ |
75 | | - PyObject *rval; |
76 | | - |
77 | | - rval = PyObjC_FindPythonProxy(self); |
78 | | - if (rval == NULL) { |
79 | | - rval = (PyObject *)PyObjCObject_New(self, |
80 | | - PyObjCObject_kCLASSIC, NO); |
81 | | - PyObjC_RegisterPythonProxy(self, rval); |
82 | | - } |
83 | | - return rval; |
84 | | -} |
85 | | - |
86 | | --(PyObject*)__pyobjc_PythonTransient__:(int*)cookie |
87 | | -{ |
88 | | - PyObject *rval; |
89 | | - |
90 | | - *cookie = 0; |
91 | | - rval = PyObjC_FindPythonProxy(self); |
92 | | - if (rval == NULL) { |
93 | | - rval = (PyObject *)PyObjCObject_New(self, |
94 | | - PyObjCObject_kCLASSIC, NO); |
95 | | - PyObjC_RegisterPythonProxy(self, rval); |
96 | | - } |
97 | | - return rval; |
98 | | -} |
99 | | - |
100 | | -@end /* PyObjCSupport */ |
101 | | |
102 | | @interface NSString (PyObjCSupport) |
103 | | -(PyObject*)__pyobjc_PythonObject__; |
104 | | diff -rupN Modules-original/objc/selector.m Modules/objc/selector.m |
105 | | --- Modules-original/objc/selector.m 2010-06-24 17:53:29.000000000 +0900 |
106 | | +++ Modules/objc/selector.m 2012-05-12 01:49:44.000000000 +0900 |
107 | | @@ -798,9 +798,6 @@ PyObjCSelector_FindNative(PyObject* self |
108 | | } |
109 | | } |
110 | | |
111 | | - if (Object_class == nil) { |
112 | | - Object_class = [Object class]; |
113 | | - } |
114 | | |
115 | | if (name[0] == '_' && name[1] == '_') { |
116 | | /* No known Objective-C class has methods whose name |