Commit 529bfffb authored by Stefan Behnel's avatar Stefan Behnel

cleanup, go back to inlining SplitStarArg, as the size overhead is negligeable

parent 76735bd2
...@@ -1352,7 +1352,7 @@ class DefNode(FuncDefNode): ...@@ -1352,7 +1352,7 @@ class DefNode(FuncDefNode):
code.putln("if (PyTuple_GET_SIZE(%s) <= %d) {" % ( code.putln("if (PyTuple_GET_SIZE(%s) <= %d) {" % (
Naming.args_cname, nargs)) Naming.args_cname, nargs))
code.put_incref(Naming.args_cname, py_object_type) 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.put_incref(Naming.empty_tuple, py_object_type)
code.putln("}") code.putln("}")
code.putln("else {") code.putln("else {")
...@@ -3449,9 +3449,9 @@ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed ...@@ -3449,9 +3449,9 @@ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed
get_stararg_utility_code = [ 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, PyObject **args,
Py_ssize_t nargs, Py_ssize_t nargs,
PyObject **args2) PyObject **args2)
......
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