Commit f8b6c7bb authored by Stefan Behnel's avatar Stefan Behnel

minor code simplification

parent ad774681
...@@ -10027,8 +10027,7 @@ proto=""" ...@@ -10027,8 +10027,7 @@ proto="""
(((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x))) (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
""") """)
binding_cfunc_utility_code = TempitaUtilityCode.load( binding_cfunc_utility_code = UtilityCode.load_cached("CythonFunction", "CythonFunction.c")
"CythonFunction", context=vars(Naming))
fused_function_utility_code = TempitaUtilityCode.load( fused_function_utility_code = TempitaUtilityCode.load(
"FusedFunction", "FusedFunction",
"CythonFunction.c", "CythonFunction.c",
......
...@@ -59,6 +59,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, ...@@ -59,6 +59,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
static int __Pyx_CyFunction_init(void); static int __Pyx_CyFunction_init(void);
//////////////////// CythonFunction //////////////////// //////////////////// CythonFunction ////////////////////
//@substitute: naming
static PyObject * static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure)
...@@ -181,7 +182,7 @@ __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) ...@@ -181,7 +182,7 @@ __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value)
static PyObject * static PyObject *
__Pyx_CyFunction_get_globals(CYTHON_UNUSED __pyx_CyFunctionObject *op) __Pyx_CyFunction_get_globals(CYTHON_UNUSED __pyx_CyFunctionObject *op)
{ {
PyObject* dict = PyModule_GetDict({{module_cname}}); PyObject* dict = PyModule_GetDict(${module_cname});
Py_XINCREF(dict); Py_XINCREF(dict);
return dict; return dict;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment