[pypy-svn] r17021 - pypy/dist/pypy/translator/c
pedronis at codespeak.net
pedronis at codespeak.net
Sun Aug 28 19:27:07 CEST 2005
Author: pedronis
Date: Sun Aug 28 19:27:06 2005
New Revision: 17021
Modified:
pypy/dist/pypy/translator/c/gc.py
Log:
oops, try to improve things a bit
Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py (original)
+++ pypy/dist/pypy/translator/c/gc.py Sun Aug 28 19:27:06 2005
@@ -303,7 +303,7 @@
if arraydefnode.gcinfo:
gcinfo = arraydefnode.gcinfo
if gcinfo.finalizer:
- yield 'void %s(GC_PTR obj, GC_PTR ignore) {' % (gcinfo.finalizer, arraydefnode.name)
+ yield 'void %s(GC_PTR obj, GC_PTR ignore) {' % (gcinfo.finalizer)
yield '\tstruct %s *a = (struct %s *)obj;' % (arraydefnode.name, arraydefnode.name)
for line in self.deallocator_lines(arraydefnode, '(*a)'):
yield '\t' + line
@@ -319,7 +319,7 @@
if structdefnode.gcinfo:
gcinfo = structdefnode.gcinfo
if gcinfo.finalizer:
- yield 'void %s(GC_PTR obj, GC_PTR ignore) {' % (gcinfo.finalizer, structdefnode.name)
+ yield 'void %s(GC_PTR obj, GC_PTR ignore) {' % gcinfo.finalizer
yield '\tstruct %s *p = (struct %s *)obj;' % (structdefnode.name, structdefnode.name)
for line in self.deallocator_lines(structdefnode, '(*p)'):
yield '\t' + line
More information about the Pypy-commit
mailing list