From 529bfffb7bfb7e31e742cddc226b0db17e5180b7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 23 Jan 2008 23:00:58 +0100 Subject: [PATCH] cleanup, go back to inlining SplitStarArg, as the size overhead is negligeable --- Cython/Compiler/Nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index fb7259c8..437493b2 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1352,7 +1352,7 @@ class DefNode(FuncDefNode): code.putln("if (PyTuple_GET_SIZE(%s) <= %d) {" % ( Naming.args_cname, nargs)) code.put_incref(Naming.args_cname, py_object_type) - code.put("%s = %s;" % (star_arg_cname, Naming.empty_tuple)) + code.put("%s = %s; " % (star_arg_cname, Naming.empty_tuple)) code.put_incref(Naming.empty_tuple, py_object_type) code.putln("}") code.putln("else {") @@ -3449,9 +3449,9 @@ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed get_stararg_utility_code = [ """ -static int __Pyx_SplitStarArg(PyObject **args, Py_ssize_t nargs, PyObject **args2); /*proto*/ +static INLINE int __Pyx_SplitStarArg(PyObject **args, Py_ssize_t nargs, PyObject **args2); /*proto*/ """,""" -static int __Pyx_SplitStarArg( +static INLINE int __Pyx_SplitStarArg( PyObject **args, Py_ssize_t nargs, PyObject **args2) -- 2.26.2