Line
Link Here
|
0 |
-- tools/python-yasm/yasm.pyx |
0 |
++ tools/python-yasm/yasm.pyx |
Lines 97-103
Link Here
|
97 |
# |
97 |
# |
98 |
cdef class __assoc_data_callback: |
98 |
cdef class __assoc_data_callback: |
99 |
cdef yasm_assoc_data_callback *cb |
99 |
cdef yasm_assoc_data_callback *cb |
100 |
def __new__(self, destroy, print_): |
100 |
def __cinit__(self, destroy, print_): |
101 |
self.cb = <yasm_assoc_data_callback *>malloc(sizeof(yasm_assoc_data_callback)) |
101 |
self.cb = <yasm_assoc_data_callback *>malloc(sizeof(yasm_assoc_data_callback)) |
102 |
self.cb.destroy = <void (*) (void *)>PyCObject_AsVoidPtr(destroy) |
102 |
self.cb.destroy = <void (*) (void *)>PyCObject_AsVoidPtr(destroy) |
103 |
#self.cb.print_ = <void (*) (void *, FILE *, int)>PyCObject_AsVoidPtr(print_) |
103 |
#self.cb.print_ = <void (*) (void *, FILE *, int)>PyCObject_AsVoidPtr(print_) |
Lines 107-113
Link Here
|
107 |
|
107 |
|
108 |
cdef class Register: |
108 |
cdef class Register: |
109 |
cdef unsigned long reg |
109 |
cdef unsigned long reg |
110 |
def __new__(self, reg): |
110 |
def __cinit__(self, reg): |
111 |
self.reg = reg |
111 |
self.reg = reg |
112 |
|
112 |
|
113 |
include "errwarn.pxi" |
113 |
include "errwarn.pxi" |