Commit 267858d2 authored by Stefan Behnel's avatar Stefan Behnel

Remove "inline" marker from non-critical helper function.

parent 66d2d95a
...@@ -8833,9 +8833,6 @@ class ClassCellInjectorNode(ExprNode): ...@@ -8833,9 +8833,6 @@ class ClassCellInjectorNode(ExprNode):
is_active = False is_active = False
def analyse_expressions(self, env): def analyse_expressions(self, env):
if self.is_active:
env.use_utility_code(
UtilityCode.load_cached("CyFunctionClassCell", "CythonFunction.c"))
return self return self
def generate_evaluation_code(self, code): def generate_evaluation_code(self, code):
...@@ -8849,6 +8846,8 @@ class ClassCellInjectorNode(ExprNode): ...@@ -8849,6 +8846,8 @@ class ClassCellInjectorNode(ExprNode):
def generate_injection_code(self, code, classobj_cname): def generate_injection_code(self, code, classobj_cname):
if self.is_active: if self.is_active:
code.globalstate.use_utility_code(
UtilityCode.load_cached("CyFunctionClassCell", "CythonFunction.c"))
code.put_error_if_neg(self.pos, '__Pyx_CyFunction_InitClassCell(%s, %s)' % ( code.put_error_if_neg(self.pos, '__Pyx_CyFunction_InitClassCell(%s, %s)' % (
self.result(), classobj_cname)) self.result(), classobj_cname))
......
...@@ -761,12 +761,12 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, Py ...@@ -761,12 +761,12 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, Py
} }
//////////////////// CyFunctionClassCell.proto //////////////////// //////////////////// CyFunctionClassCell.proto ////////////////////
static CYTHON_INLINE int __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions, PyObject *classobj); static int __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions, PyObject *classobj);/*proto*/
//////////////////// CyFunctionClassCell //////////////////// //////////////////// CyFunctionClassCell ////////////////////
//@requires: CythonFunction //@requires: CythonFunction
static CYTHON_INLINE int __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions, PyObject *classobj) { static int __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions, PyObject *classobj) {
Py_ssize_t i, count = PyList_GET_SIZE(cyfunctions); Py_ssize_t i, count = PyList_GET_SIZE(cyfunctions);
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
......
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