rendered paste body/* Generated by Pyrex 0.9.3.1 on Fri Mar 14 18:18:16 2008 */#include "Python.h"#include "structmember.h"#ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG#endif#include "svn_time.h"#include "apr.h"#include "apr_errno.h"#include "apr_general.h"#include "apr_file_io.h"#include "apr_pools.h"#include "apr_tables.h"#include "apr_hash.h"#include "apr_time.h"typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/static PyObject *__Pyx_UnpackItem(PyObject *, int); /*proto*/static int __Pyx_EndUnpack(PyObject *, int); /*proto*/static int __Pyx_PrintItem(PyObject *); /*proto*/static int __Pyx_PrintNewline(void); /*proto*/static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/static void __Pyx_ReRaise(void); /*proto*/static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/static PyObject *__Pyx_GetExcValue(void); /*proto*/static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], int nargs, PyObject **args2, PyObject **kwds2); /*proto*/static void __Pyx_WriteUnraisable(char *name); /*proto*/static void __Pyx_AddTraceback(char *funcname); /*proto*/static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/static PyObject *__pyx_m;static PyObject *__pyx_b;static int __pyx_lineno;static char *__pyx_filename;staticforward char **__pyx_f;/* Declarations from apr *//* Declarations from types *//* Declarations from core */static <error>; /*proto*/static PyObject *(__pyx_f_4core_check_error(<error>)); /*proto*/static apr_pool_t (*(__pyx_f_4core_Pool(apr_pool_t (*)))); /*proto*/static PyObject *(__pyx_f_4core_time_to_cstring(PyObject *)); /*proto*/static apr_time_t (__pyx_f_4core_time_from_cstring(PyObject *)); /*proto*//* Implementation of core */static PyObject *__pyx_n_d;static PyObject *__pyx_n_SubversionException;static PyObject *__pyx_n_apr_short_t;static PyObject *__pyx_n_Exception;static PyObject *__pyx_n___init__;static <error> { <error>; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_cancel_baton); /* "C:\src\bzr-svn\pyrex\core.pyx":26 */ __pyx_1 = PyTuple_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_v_cancel_baton, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":27 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_WriteUnraisable("core.py_cancel_func"); __pyx_L0:; Py_DECREF(__pyx_v_cancel_baton); return __pyx_r;}static PyObject *__pyx_n_num;static PyObject *__pyx_n_msg;static PyObject *__pyx_f_4core_19SubversionException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/static PyMethodDef __pyx_mdef_4core_19SubversionException___init__ = {"__init__", (PyCFunction)__pyx_f_4core_19SubversionException___init__, METH_VARARGS|METH_KEYWORDS, 0};static PyObject *__pyx_f_4core_19SubversionException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_num = 0; PyObject *__pyx_v_msg = 0; PyObject *__pyx_r; static char *__pyx_argnames[] = {"self","num","msg",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_num, &__pyx_v_msg)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_num); Py_INCREF(__pyx_v_msg); /* "C:\src\bzr-svn\pyrex\core.pyx":31 */ if (PyObject_SetAttr(__pyx_v_self, __pyx_n_num, __pyx_v_num) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;} /* "C:\src\bzr-svn\pyrex\core.pyx":32 */ if (PyObject_SetAttr(__pyx_v_self, __pyx_n_msg, __pyx_v_msg) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; goto __pyx_L1;} __pyx_r = Py_None; Py_INCREF(__pyx_r); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("core.SubversionException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_num); Py_DECREF(__pyx_v_msg); return __pyx_r;}static PyObject *__pyx_n_errormessage;static PyObject *__pyx_f_4core_check_error(<error>) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":36 */ __pyx_1 = (__pyx_v_error != 0); if (__pyx_1) { /* "C:\src\bzr-svn\pyrex\core.pyx":37 */ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_SubversionException); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} __pyx_3 = dummy(__pyx_v_error->apr_err); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_errormessage); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4); __pyx_3 = 0; __pyx_4 = 0; __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; __Pyx_Raise(__pyx_3, 0, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(__pyx_r); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("core.check_error"); __pyx_r = 0; __pyx_L0:; return __pyx_r;}static PyObject *__pyx_k2p;static char (__pyx_k2[]) = "APR Error";static apr_pool_t (*__pyx_f_4core_Pool(apr_pool_t (*__pyx_v_parent))) { apr_status_t __pyx_v_status; apr_pool_t (*__pyx_v_ret); apr_pool_t (*__pyx_r); int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":43 */ __pyx_v_ret = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":44 */ __pyx_v_status = apr_pool_create((&__pyx_v_ret),__pyx_v_parent); /* "C:\src\bzr-svn\pyrex\core.pyx":45 */ __pyx_1 = (__pyx_v_status != 0); if (__pyx_1) { /* "C:\src\bzr-svn\pyrex\core.pyx":47 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_Exception); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} Py_INCREF(__pyx_k2p); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k2p); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __Pyx_Raise(__pyx_4, 0, 0); Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "C:\src\bzr-svn\pyrex\core.pyx":48 */ __pyx_r = __pyx_v_ret; goto __pyx_L0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_WriteUnraisable("core.Pool"); __pyx_L0:; return __pyx_r;}static char (__pyx_k3[]) = "Convert a UNIX timestamp to a Subversion CString.";static PyObject *__pyx_f_4core_time_to_cstring(PyObject *__pyx_v_when) { apr_pool_t (*__pyx_v_pool); PyObject *__pyx_v_ret; PyObject *__pyx_r; apr_time_t __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_when); __pyx_v_ret = Py_None; Py_INCREF(__pyx_v_ret); /* "C:\src\bzr-svn\pyrex\core.pyx":57 */ __pyx_k3; /* "C:\src\bzr-svn\pyrex\core.pyx":59 */ __pyx_v_pool = __pyx_f_4core_Pool(0); /* "C:\src\bzr-svn\pyrex\core.pyx":60 */ __pyx_1 = PyLong_AsUnsignedLongLong(__pyx_v_when); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; goto __pyx_L1;} __pyx_2 = PyString_FromString(svn_time_to_cstring(__pyx_1,__pyx_v_pool)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":61 */ apr_pool_destroy(__pyx_v_pool); /* "C:\src\bzr-svn\pyrex\core.pyx":62 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(__pyx_r); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("core.time_to_cstring"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_when); return __pyx_r;}static char (__pyx_k4[]) = "Parse a Subversion time string and return a UNIX timestamp.";static apr_time_t __pyx_f_4core_time_from_cstring(PyObject *__pyx_v_data) { apr_time_t __pyx_v_when; apr_pool_t (*__pyx_v_pool); apr_time_t __pyx_r; char (*__pyx_1); PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_data); /* "C:\src\bzr-svn\pyrex\core.pyx":65 */ __pyx_k4; /* "C:\src\bzr-svn\pyrex\core.pyx":68 */ __pyx_1 = PyString_AsString(__pyx_v_data); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; goto __pyx_L1;} __pyx_2 = __pyx_f_4core_check_error(svn_time_from_cstring((&__pyx_v_when),__pyx_1,__pyx_v_pool)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":69 */ apr_pool_destroy(__pyx_v_pool); /* "C:\src\bzr-svn\pyrex\core.pyx":70 */ __pyx_r = __pyx_v_when; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_WriteUnraisable("core.time_from_cstring"); __pyx_L0:; Py_DECREF(__pyx_v_data); return __pyx_r;}static __Pyx_InternTabEntry __pyx_intern_tab[] = { {&__pyx_n_Exception, "Exception"}, {&__pyx_n_SubversionException, "SubversionException"}, {&__pyx_n___init__, "__init__"}, {&__pyx_n_apr_short_t, "apr_short_t"}, {&__pyx_n_d, "d"}, {&__pyx_n_errormessage, "errormessage"}, {&__pyx_n_msg, "msg"}, {&__pyx_n_num, "num"}, {0, 0}};static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_k2p, __pyx_k2, sizeof(__pyx_k2)}, {0, 0, 0}};static struct PyMethodDef __pyx_methods[] = { {0, 0, 0, 0}};DL_EXPORT(void) initcore(void); /*proto*/DL_EXPORT(void) initcore(void) { PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; __pyx_m = Py_InitModule4("core", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;}; __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;}; if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;}; /* "C:\src\bzr-svn\pyrex\core.pyx":22 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_apr_short_t); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} __pyx_2 = PyInt_FromLong(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_d, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":23 */ apr_initialize(); /* "C:\src\bzr-svn\pyrex\core.pyx":29 */ __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_Exception); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = __Pyx_CreateClass(__pyx_2, __pyx_1, __pyx_n_SubversionException, "core"); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":30 */ __pyx_2 = PyCFunction_New(&__pyx_mdef_4core_19SubversionException___init__, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} __pyx_4 = PyMethod_New(__pyx_2, 0, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_3, __pyx_n___init__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_SubversionException, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "C:\src\bzr-svn\pyrex\core.pyx":64 */ return; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("core");}static char *__pyx_filenames[] = { "core.pyx",};statichere char **__pyx_f = __pyx_filenames;/* Runtime support code */static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { PyObject *result; result = PyObject_GetAttr(dict, name); if (!result) PyErr_SetObject(PyExc_NameError, name); return result;}static PyObject *__Pyx_CreateClass( PyObject *bases, PyObject *dict, PyObject *name, char *modname){ PyObject *py_modname; PyObject *result = 0; py_modname = PyString_FromString(modname); if (!py_modname) goto bad; if (PyDict_SetItemString(dict, "__module__", py_modname) < 0) goto bad; result = PyClass_New(bases, dict, name);bad: Py_XDECREF(py_modname); return result;}static void __Pyx_WriteUnraisable(char *name) { PyObject *old_exc, *old_val, *old_tb; PyObject *ctx; PyErr_Fetch(&old_exc, &old_val, &old_tb); ctx = PyString_FromString(name); PyErr_Restore(old_exc, old_val, old_tb); if (!ctx) ctx = Py_None; PyErr_WriteUnraisable(ctx);}static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) { Py_XINCREF(type); Py_XINCREF(value); Py_XINCREF(tb); /* First, check the traceback argument, replacing None with NULL. */ if (tb == Py_None) { Py_DECREF(tb); tb = 0; } else if (tb != NULL && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } /* Next, replace a missing value with None */ if (value == NULL) { value = Py_None; Py_INCREF(value); } /* Next, repeatedly, replace a tuple exception with its first item */ while (PyTuple_Check(type) && PyTuple_Size(type) > 0) { PyObject *tmp = type; type = PyTuple_GET_ITEM(type, 0); Py_INCREF(type); Py_DECREF(tmp); } if (PyString_Check(type)) ; else if (PyClass_Check(type)) ; /*PyErr_NormalizeException(&type, &value, &tb);*/ else if (PyInstance_Check(type)) { /* Raising an instance. The value should be a dummy. */ if (value != Py_None) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } else { /* Normalize to raise <class>, <instance> */ Py_DECREF(value); value = type; type = (PyObject*) ((PyInstanceObject*)type)->in_class; Py_INCREF(type); } } else { /* Not something you can raise. You get an exception anyway, just not what you specified :-) */ PyErr_Format(PyExc_TypeError, "exceptions must be strings, classes, or " "instances, not %s", type->ob_type->tp_name); goto raise_error; } PyErr_Restore(type, value, tb); return;raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return;}static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { while (t->p) { *t->p = PyString_InternFromString(t->s); if (!*t->p) return -1; ++t; } return 0;}static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); if (!*t->p) return -1; ++t; } return 0;}#include "compile.h"#include "frameobject.h"#include "traceback.h"static void __Pyx_AddTraceback(char *funcname) { PyObject *py_srcfile = 0; PyObject *py_funcname = 0; PyObject *py_globals = 0; PyObject *empty_tuple = 0; PyObject *empty_string = 0; PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_srcfile = PyString_FromString(__pyx_filename); if (!py_srcfile) goto bad; py_funcname = PyString_FromString(funcname); if (!py_funcname) goto bad; py_globals = PyModule_GetDict(__pyx_m); if (!py_globals) goto bad; empty_tuple = PyTuple_New(0); if (!empty_tuple) goto bad; empty_string = PyString_FromString(""); if (!empty_string) goto bad; py_code = PyCode_New( 0, /*int argcount,*/ 0, /*int nlocals,*/ 0, /*int stacksize,*/ 0, /*int flags,*/ empty_string, /*PyObject *code,*/ empty_tuple, /*PyObject *consts,*/ empty_tuple, /*PyObject *names,*/ empty_tuple, /*PyObject *varnames,*/ empty_tuple, /*PyObject *freevars,*/ empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ __pyx_lineno, /*int firstlineno,*/ empty_string /*PyObject *lnotab*/ ); if (!py_code) goto bad; py_frame = PyFrame_New( PyThreadState_Get(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ py_globals, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; py_frame->f_lineno = __pyx_lineno; PyTraceBack_Here(py_frame);bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); Py_XDECREF(empty_tuple); Py_XDECREF(empty_string); Py_XDECREF(py_code); Py_XDECREF(py_frame);}