[pypy-svn] r73286 - pypy/branch/cpython-extension/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Fri Apr 2 11:19:43 CEST 2010
Author: afa
Date: Fri Apr 2 11:19:42 2010
New Revision: 73286
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
Fix translation. We don't need to export the internal pypy_va_get* function in this case.
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py Fri Apr 2 11:19:42 2010
@@ -510,8 +510,7 @@
(name, name_no_star))
pypy_decls.append(header + ';')
functions.append(header + '\n{return va_arg(*vp, %s);}\n' % name)
- if not we_are_translated():
- export_symbols.append('pypy_va_get_%s' % (name_no_star,))
+ export_symbols.append('pypy_va_get_%s' % (name_no_star,))
pypy_decls.append("#endif\n")
@@ -558,7 +557,7 @@
generate_macros(export_symbols, rename, False)
- generate_decls_and_callbacks(db)
+ generate_decls_and_callbacks(db, [])
eci = build_eci(False, export_symbols)
More information about the Pypy-commit
mailing list