From: Stefan Behnel Date: Wed, 23 Jan 2008 22:00:58 +0000 (+0100) Subject: cleanup, go back to inlining SplitStarArg, as the size overhead is negligeable X-Git-Tag: 0.9.6.14~29^2~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=529bfffb7bfb7e31e742cddc226b0db17e5180b7;p=cython.git cleanup, go back to inlining SplitStarArg, as the size overhead is negligeable --- 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)