cleanup, go back to inlining SplitStarArg, as the size overhead is negligeable
authorStefan Behnel <scoder@users.berlios.de>
Wed, 23 Jan 2008 22:00:58 +0000 (23:00 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 23 Jan 2008 22:00:58 +0000 (23:00 +0100)
Cython/Compiler/Nodes.py

index fb7259c8b54394a501eb01d8dc8b78d2eef58b3a..437493b28f54bb877b28f0bff27d677c89467614 100644 (file)
@@ -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)