kwdict = newmappingobject();
if (kwdict == NULL)
goto fail;
+ i = co->co_argcount;
+ if (co->co_flags & CO_VARARGS)
+ i++;
+ SETLOCAL(i, kwdict);
}
if (argcount > co->co_argcount) {
if (!(co->co_flags & CO_VARARGS)) {
}
if (co->co_flags & CO_VARARGS) {
u = newtupleobject(argcount - n);
+ if (u == NULL)
+ goto fail;
+ SETLOCAL(co->co_argcount, u);
for (i = n; i < argcount; i++) {
x = args[i];
INCREF(x);
SETTUPLEITEM(u, i-n, x);
}
- SETLOCAL(co->co_argcount, u);
}
for (i = 0; i < kwcount; i++) {
object *keyword = kws[2*i];
}
}
}
- if (kwdict != NULL) {
- i = co->co_argcount;
- if (co->co_flags & CO_VARARGS)
- i++;
- SETLOCAL(i, kwdict);
- }
- if (0) {
- fail:
- XDECREF(kwdict);
- goto fail2;
- }
}
else {
if (argcount > 0 || kwcount > 0) {
err_setstr(TypeError, "no arguments expected");
- fail2:
- current_frame = f->f_back;
- DECREF(f);
- return NULL;
+ goto fail;
}
}
if (call_trace(&sys_trace, &f->f_trace, f, "call",
None/*XXX how to compute arguments now?*/)) {
/* Trace function raised an error */
- current_frame = f->f_back;
- DECREF(f);
- return NULL;
+ goto fail;
}
}
itself and isn't called for "line" events */
if (call_trace(&sys_profile, (object**)0, f, "call",
None/*XXX*/)) {
- current_frame = f->f_back;
- DECREF(f);
- return NULL;
+ goto fail;
}
}
goto on_error;
}
}
+#ifdef macintosh
+#undef HAVE_SIGNAL_H
+#endif
#ifndef HAVE_SIGNAL_H /* Is this the right #define? */
/* If we have true signals, the signal handler will call
Py_AddPendingCall() so we don't have to call sigcheck().
}
}
+ --recursion_depth;
+
+ fail: /* Jump here from prelude on failure */
+
/* Kill all local variables */
{
current_frame = f->f_back;
DECREF(f);
- --recursion_depth;
return retval;
}