Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: third_party/yasm/patched-yasm/tools/python-yasm/yasm.pyx

Issue 11369048: Update Yasm to 1.2.0 (Yasm Part 2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/yasm/patched-yasm/tools/python-yasm/yasm.pyx
===================================================================
--- third_party/yasm/patched-yasm/tools/python-yasm/yasm.pyx (revision 165590)
+++ third_party/yasm/patched-yasm/tools/python-yasm/yasm.pyx (working copy)
@@ -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"
« no previous file with comments | « third_party/yasm/patched-yasm/tools/python-yasm/tests/test_symrec.py ('k') | third_party/yasm/patched-yasm/yasm.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698