[pypy-svn] r75233 - pypy/branch/cpyext-init-cleanup/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Wed Jun 9 12:09:01 CEST 2010
Author: afa
Date: Wed Jun 9 12:09:00 2010
New Revision: 75233
Modified:
pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py
Log:
Remove unused parameter
Modified: pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py (original)
+++ pypy/branch/cpyext-init-cleanup/pypy/module/cpyext/api.py Wed Jun 9 12:09:00 2010
@@ -752,7 +752,7 @@
struct PyPyAPI* pypyAPI = &_pypyAPI;
""" % dict(members=structmembers)
- functions = generate_decls_and_callbacks(db, export_symbols)
+ functions = generate_decls_and_callbacks(db)
global_objects = []
for obj in GLOBALS.values():
@@ -830,7 +830,7 @@
pypy_macros_h = udir.join('pypy_macros.h')
pypy_macros_h.write('\n'.join(pypy_macros))
-def generate_decls_and_callbacks(db, export_symbols, api_struct=True):
+def generate_decls_and_callbacks(db, api_struct=True):
"NOT_RPYTHON"
# implement function callbacks and generate function decls
functions = []
@@ -924,7 +924,7 @@
generate_macros(export_symbols, rename=False)
- functions = generate_decls_and_callbacks(db, [], api_struct=False)
+ functions = generate_decls_and_callbacks(db, api_struct=False)
code = "#include <Python.h>\n" + "\n".join(functions)
eci = build_eci(False, export_symbols, code)
More information about the Pypy-commit
mailing list