Author: Manuel Jacob Branch: refactor-translator Changeset: r68771:5893d92ec346 Date: 2014-01-19 21:23 +0100 http://bitbucket.org/pypy/pypy/changeset/5893d92ec346/
Log: Kill predeclare_extfuncs(). diff --git a/rpython/translator/c/extfunc.py b/rpython/translator/c/extfunc.py --- a/rpython/translator/c/extfunc.py +++ b/rpython/translator/c/extfunc.py @@ -9,24 +9,6 @@ # Common types yield ('RPyString', STR) -def predeclare_extfuncs(db, rtyper): - modules = {} - def module_name(c_name): - frags = c_name[3:].split('_') - if frags[0] == '': - return '_' + frags[1] - else: - return frags[0] - - for func, funcobj in db.externalfuncs.items(): - # construct a define LL_NEED_<modname> to make it possible to isolate in-development externals and headers - modname = module_name(func) - if modname not in modules: - modules[modname] = True - yield 'LL_NEED_%s' % modname.upper(), 1 - funcptr = funcobj._as_ptr() - yield func, funcptr - def predeclare_exception_data(db, rtyper): # Exception-related types and constants exceptiondata = rtyper.exceptiondata @@ -57,7 +39,6 @@ def predeclare_all(db, rtyper): for fn in [predeclare_common_types, predeclare_exception_data, - predeclare_extfuncs, ]: for t in fn(db, rtyper): yield t @@ -66,7 +47,6 @@ def get_all(db, rtyper): for fn in [predeclare_common_types, predeclare_exception_data, - predeclare_extfuncs, ]: for t in fn(db, rtyper): yield t[1] _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit