Changeset 585
- Timestamp:
- 07/02/09 18:31:01 (3 years ago)
- Location:
- openmoko/trunk/openmoko-target/dev-lang/python
- Files:
-
- 2 modified
-
Manifest (modified) (1 diff)
-
files/python-2.5.4-enable-ctypes-module.patch (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
openmoko/trunk/openmoko-target/dev-lang/python/Manifest
r525 r585 13 13 AUX python-2.5.2_turkish.patch 4882 RMD160 69486e369849e0706f4261410f231649397cf793 SHA1 1dc369bdfb10bc9ddb63a5672fa561acf8dee32c SHA256 bf4019ae2acd4b6868db0b625910f668f857711ae00b29f638d038611444b169 14 14 AUX python-2.5.4-cross-Makefile.pre.in.patch 349 RMD160 c46f87b9b232e1d2f55a60e2558edcb2fa0efd50 SHA1 04e915c1e29c8e15f48a240853af1ee6c9210674 SHA256 a0b6313dcd6aeed2cb1b82353a2e339fe79cd9b861811cb67e90739ec84deec7 15 AUX python-2.5.4-enable-ctypes-module.patch 3 034 RMD160 6374bbd2ad13e180324aa5d97ff42ab52a3d3118 SHA1 77b2d479d0ba37cec4d71c29c8d6ffe651a15765 SHA256 4f3ba96b5a5986adbffc8385299780b2a2b3aa7b6875c2c46d16a50bba25851615 AUX python-2.5.4-enable-ctypes-module.patch 3646 RMD160 da8a3a30024bda2a3aef483031a86168a151ce53 SHA1 eef2a90cf256f212c6e555b5a9a10c24ef0a8d00 SHA256 8efce0566a33bcda4842226e182a41a6ddbb92822d459e5ff0daa57bf05c2089 16 16 AUX python-2.6-chflags-cross.patch 1716 RMD160 b0ec772a41a24d51f4c7430b19bcc6251cd6be87 SHA1 4745cd53cef503c41c50573ad97f40eb89fd4bcd SHA256 7c36689db47720052069725036983c2fb6959f425e3777aae55976b2788d463f 17 17 AUX python-2.6-cross-distutils-sysconfig.patch 1802 RMD160 346449ad5f2f77411dd59e489c22900e40a51bb1 SHA1 59d147726780a131c693e8a6c309f07ac1e52597 SHA256 b0782e2a98103c55a37ca05ad17845762eaaa63ca2bf29d0d342be996a7019d9 -
openmoko/trunk/openmoko-target/dev-lang/python/files/python-2.5.4-enable-ctypes-module.patch
r335 r585 37 37 } ITEM; 38 38 39 --- Modules/_ctypes/callbacks.c 2008-04-25 19:55:19.000000000 +0000 40 +++ Modules/_ctypes/callbacks.c.new 2009-04-19 18:22:59.000000000 +0000 39 --- Modules/_ctypes/ctypes.h 2009-04-19 18:35:49.000000000 +0000 40 +++ Modules/_ctypes/ctypes.h.new 2009-04-19 18:36:34.000000000 +0000 41 @@ -69,7 +69,9 @@ 42 43 typedef struct { 44 PyObject_VAR_HEAD 45 +#if FFI_CLOSURES 46 ffi_closure *pcl; /* the C callable */ 47 +#endif 48 ffi_cif cif; 49 PyObject *converters; 50 PyObject *callable; 51 --- Modules/_ctypes/callbacks.c 2009-07-02 14:23:24.000000000 +0200 52 +++ Modules/_ctypes/callbacks.c.new 2009-07-02 14:21:05.000000000 +0200 41 53 @@ -20,8 +20,10 @@ 42 54 Py_XDECREF(self->converters); … … 50 62 } 51 63 52 @@ -365,12 +367,13 @@ 64 @@ -336,7 +338,9 @@ 65 return NULL; 66 } 67 68 +#if FFI_CLOSURES 69 p->pcl = NULL; 70 +#endif 71 memset(&p->cif, 0, sizeof(p->cif)); 72 p->converters = NULL; 73 p->callable = NULL; 74 @@ -365,12 +369,13 @@ 53 75 54 76 assert(CThunk_CheckExact(p)); … … 65 87 PyObject *cnv = PySequence_GetItem(converters, i); 66 88 if (cnv == NULL) 67 @@ -409,13 +41 2,14 @@89 @@ -409,13 +414,14 @@ 68 90 "ffi_prep_cif failed with %d", result); 69 91 goto error; … … 81 103 p->converters = converters; 82 104 Py_INCREF(callable); 83 --- Modules/_ctypes/ctypes.h 2009-04-19 18:35:49.000000000 +0000 84 +++ Modules/_ctypes/ctypes.h.new 2009-04-19 18:36:34.000000000 +0000 85 @@ -69,7 +69,9 @@ 105 --- Modules/_ctypes/_ctypes.c 2008-10-18 23:33:44.000000000 +0200 106 +++ Modules/_ctypes/_ctypes.c.new 2009-07-02 14:28:31.000000000 +0200 107 @@ -2952,7 +2952,11 @@ 108 self->callable = callable; 86 109 87 typedef struct { 88 PyObject_VAR_HEAD 110 self->thunk = thunk; 89 111 +#if FFI_CLOSURES 90 ffi_closure *pcl; /* the C callable */ 112 *(void **)self->b_ptr = (void *)thunk->pcl; 113 +#else 114 + *(void **)self->b_ptr = NULL; 91 115 +#endif 92 ffi_cif cif;93 Py Object *converters;94 PyObject *callable;116 117 Py_INCREF((PyObject *)thunk); /* for KeepRef */ 118 if (-1 == KeepRef((CDataObject *)self, 0, (PyObject *)thunk)) {
