linamh/dev-lang/yasm/files/yasm-1.1.0-cython-0.14.patch
geos_one f9dcf98e91 dev-lang/yasm: add patach for cython 0.14
(Portage version: 2.2.0_alpha10-r1/svn/Linux x86_64, RepoMan options: --force)

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2791 6952d904-891a-0410-993b-d76249ca496b
2010-12-26 18:24:20 +00:00

23 lines
719 B
Diff

http://bugs.gentoo.org/show_bug.cgi?id=348587
--- tools/python-yasm/yasm.pyx
+++ tools/python-yasm/yasm.pyx
@@ -97,7 +97,7 @@
#
cdef class __assoc_data_callback:
cdef yasm_assoc_data_callback *cb
- def __new__(self, destroy, print_):
+ def __cinit__(self, destroy, print_):
self.cb = <yasm_assoc_data_callback *>malloc(sizeof(yasm_assoc_data_callback))
self.cb.destroy = <void (*) (void *)>PyCObject_AsVoidPtr(destroy)
#self.cb.print_ = <void (*) (void *, FILE *, int)>PyCObject_AsVoidPtr(print_)
@@ -107,7 +107,7 @@
cdef class Register:
cdef unsigned long reg
- def __new__(self, reg):
+ def __cinit__(self, reg):
self.reg = reg
include "errwarn.pxi"