[pypy-svn] r15414 - pypy/dist/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Sat Jul 30 14:23:32 CEST 2005
Author: arigo
Date: Sat Jul 30 14:23:31 2005
New Revision: 15414
Modified:
pypy/dist/pypy/translator/c/node.py
Log:
Forgot to forward-declare the deallocator for ArrayNodeDef.
Modified: pypy/dist/pypy/translator/c/node.py
==============================================================================
--- pypy/dist/pypy/translator/c/node.py (original)
+++ pypy/dist/pypy/translator/c/node.py Sat Jul 30 14:23:31 2005
@@ -217,6 +217,9 @@
line = '/* %s */' % line
yield '\t' + line
yield '};'
+ if self.deallocator:
+ yield 'void %s(struct %s *a);' % (self.deallocator, self.name)
+
elif phase == 2 and self.deallocator:
yield 'void %s(struct %s *a) {' % (self.deallocator, self.name)
for line in self.deallocator_lines('a->'):
More information about the Pypy-commit
mailing list