Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 348587
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +3 lines)
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"

Return to bug 348587