1 |
--- yasm-1.1.0/tools/python-yasm/yasm.pyx.orig 2011-01-14 02:45:06.965632038 +0200 |
2 |
+++ yasm-1.1.0/tools/python-yasm/yasm.pyx 2011-01-14 02:45:21.549789708 +0200 |
3 |
@@ -97,7 +97,7 @@ |
4 |
# |
5 |
cdef class __assoc_data_callback: |
6 |
cdef yasm_assoc_data_callback *cb |
7 |
- def __new__(self, destroy, print_): |
8 |
+ def __cinit__(self, destroy, print_): |
9 |
self.cb = <yasm_assoc_data_callback *>malloc(sizeof(yasm_assoc_data_callback)) |
10 |
self.cb.destroy = <void (*) (void *)>PyCObject_AsVoidPtr(destroy) |
11 |
#self.cb.print_ = <void (*) (void *, FILE *, int)>PyCObject_AsVoidPtr(print_) |
12 |
@@ -107,7 +107,7 @@ |
13 |
|
14 |
cdef class Register: |
15 |
cdef unsigned long reg |
16 |
- def __new__(self, reg): |
17 |
+ def __cinit__(self, reg): |
18 |
self.reg = reg |
19 |
|
20 |
include "errwarn.pxi" |