Cython has moved to github.
pyrex
view Tests/4/tryexcept.c @ 86:da6e97bb7e6d
Multiple compilation fixed
| author | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
|---|---|
| date | Sat May 24 15:50:12 2008 +1200 (4 years ago) |
| parents | 12072e0e4fd5 |
| children | 94d46b3c5354 |
line source
1 /* Generated by Pyrex */
3 #define PY_SSIZE_T_CLEAN
4 #include "Python.h"
5 #include "structmember.h"
6 #ifndef PY_LONG_LONG
7 #define PY_LONG_LONG LONG_LONG
8 #endif
9 #if PY_VERSION_HEX < 0x02050000
10 typedef int Py_ssize_t;
11 #define PY_SSIZE_T_MAX INT_MAX
12 #define PY_SSIZE_T_MIN INT_MIN
13 #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
14 #define PyInt_AsSsize_t(o) PyInt_AsLong(o)
15 #endif
16 #ifndef WIN32
17 #ifndef __stdcall
18 #define __stdcall
19 #endif
20 #ifndef __cdecl
21 #define __cdecl
22 #endif
23 #endif
24 #ifdef __cplusplus
25 #define __PYX_EXTERN_C extern "C"
26 #else
27 #define __PYX_EXTERN_C extern
28 #endif
29 #include <math.h>
32 typedef struct {PyObject **p; int i; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
34 static PyObject *__pyx_m;
35 static PyObject *__pyx_b;
36 static int __pyx_lineno;
37 static char *__pyx_filename;
38 static char **__pyx_f;
40 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
42 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
44 static int __Pyx_SetItemInt(PyObject *o, Py_ssize_t i, PyObject *v); /*proto*/
46 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
48 static void __Pyx_AddTraceback(char *funcname); /*proto*/
50 /* Declarations from tryexcept */
53 /* Declarations from implementation of tryexcept */
59 static __Pyx_StringTabEntry __pyx_string_tab[] = {
60 {0, 0, 0, 0}
61 };
65 /* Implementation of tryexcept */
67 static PyObject *__pyx_f_9tryexcept_f(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
68 static PyObject *__pyx_f_9tryexcept_f(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
69 PyObject *__pyx_v_a = 0;
70 PyObject *__pyx_v_b = 0;
71 PyObject *__pyx_v_c = 0;
72 PyObject *__pyx_v_x = 0;
73 int __pyx_v_i;
74 PyObject *__pyx_r;
75 PyObject *__pyx_1 = 0;
76 int __pyx_2;
77 PyObject *__pyx_3 = 0;
78 PyObject *__pyx_4 = 0;
79 PyObject *__pyx_5 = 0;
80 static char *__pyx_argnames[] = {"a","b","c","x",0};
81 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOOO", __pyx_argnames, &__pyx_v_a, &__pyx_v_b, &__pyx_v_c, &__pyx_v_x)) return 0;
82 Py_INCREF(__pyx_v_a);
83 Py_INCREF(__pyx_v_b);
84 Py_INCREF(__pyx_v_c);
85 Py_INCREF(__pyx_v_x);
87 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":3 */
88 __pyx_1 = PyNumber_Add(__pyx_v_b, __pyx_v_c); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;}
89 Py_DECREF(__pyx_v_a);
90 __pyx_v_a = __pyx_1;
91 __pyx_1 = 0;
93 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":5 */
94 /*try:*/ {
96 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":6 */
97 __pyx_v_i = 1;
99 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":7 */
100 __Pyx_Raise(__pyx_v_x, 0, 0);
101 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; goto __pyx_L2;}
103 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":8 */
104 __pyx_v_i = 2;
105 }
106 goto __pyx_L3;
107 __pyx_L2:;
108 Py_XDECREF(__pyx_1); __pyx_1 = 0;
110 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":9 */
111 __pyx_2 = PyErr_ExceptionMatches(__pyx_v_a);
112 if (__pyx_2) {
113 __Pyx_AddTraceback("tryexcept.f");
114 if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; goto __pyx_L1;}
115 __pyx_v_i = 3;
116 Py_DECREF(__pyx_1); __pyx_1 = 0;
117 Py_DECREF(__pyx_3); __pyx_3 = 0;
118 Py_DECREF(__pyx_4); __pyx_4 = 0;
119 goto __pyx_L3;
120 }
121 goto __pyx_L1;
122 __pyx_L3:;
124 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":12 */
125 /*try:*/ {
126 __pyx_v_i = 1;
127 }
128 goto __pyx_L5;
129 Py_XDECREF(__pyx_1); __pyx_1 = 0;
130 Py_XDECREF(__pyx_3); __pyx_3 = 0;
131 Py_XDECREF(__pyx_4); __pyx_4 = 0;
133 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":14 */
134 __pyx_2 = PyErr_ExceptionMatches(__pyx_v_a);
135 if (__pyx_2) {
136 __Pyx_AddTraceback("tryexcept.f");
137 if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;}
138 __pyx_v_i = 2;
139 Py_DECREF(__pyx_1); __pyx_1 = 0;
140 Py_DECREF(__pyx_3); __pyx_3 = 0;
141 Py_DECREF(__pyx_4); __pyx_4 = 0;
142 goto __pyx_L5;
143 }
145 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":16 */
146 __pyx_2 = PyErr_ExceptionMatches(__pyx_v_b);
147 if (__pyx_2) {
148 __Pyx_AddTraceback("tryexcept.f");
149 if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; goto __pyx_L1;}
150 __pyx_v_i = 3;
151 Py_DECREF(__pyx_1); __pyx_1 = 0;
152 Py_DECREF(__pyx_3); __pyx_3 = 0;
153 Py_DECREF(__pyx_4); __pyx_4 = 0;
154 goto __pyx_L5;
155 }
156 goto __pyx_L1;
157 __pyx_L5:;
159 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":19 */
160 /*try:*/ {
161 __pyx_v_i = 1;
162 }
163 goto __pyx_L7;
164 Py_XDECREF(__pyx_1); __pyx_1 = 0;
165 Py_XDECREF(__pyx_3); __pyx_3 = 0;
166 Py_XDECREF(__pyx_4); __pyx_4 = 0;
168 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":21 */
169 __pyx_2 = PyErr_ExceptionMatches(__pyx_v_a);
170 if (__pyx_2) {
171 __Pyx_AddTraceback("tryexcept.f");
172 if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; goto __pyx_L1;}
173 Py_INCREF(__pyx_3);
174 Py_DECREF(__pyx_v_b);
175 __pyx_v_b = __pyx_3;
176 __pyx_v_i = 2;
177 Py_DECREF(__pyx_1); __pyx_1 = 0;
178 Py_DECREF(__pyx_3); __pyx_3 = 0;
179 Py_DECREF(__pyx_4); __pyx_4 = 0;
180 goto __pyx_L7;
181 }
182 goto __pyx_L1;
183 __pyx_L7:;
185 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":24 */
186 /*try:*/ {
187 __pyx_v_i = 1;
188 }
189 goto __pyx_L9;
190 Py_XDECREF(__pyx_1); __pyx_1 = 0;
191 Py_XDECREF(__pyx_3); __pyx_3 = 0;
192 Py_XDECREF(__pyx_4); __pyx_4 = 0;
194 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":26 */
195 __pyx_2 = PyErr_ExceptionMatches(__pyx_v_a);
196 if (__pyx_2) {
197 __Pyx_AddTraceback("tryexcept.f");
198 if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;}
199 __pyx_v_i = 2;
200 Py_DECREF(__pyx_1); __pyx_1 = 0;
201 Py_DECREF(__pyx_3); __pyx_3 = 0;
202 Py_DECREF(__pyx_4); __pyx_4 = 0;
203 goto __pyx_L9;
204 }
206 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":28 */
207 /*except:*/ {
208 __Pyx_AddTraceback("tryexcept.f");
209 if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; goto __pyx_L1;}
210 __pyx_v_i = 3;
211 Py_DECREF(__pyx_1); __pyx_1 = 0;
212 Py_DECREF(__pyx_3); __pyx_3 = 0;
213 Py_DECREF(__pyx_4); __pyx_4 = 0;
214 goto __pyx_L9;
215 }
216 __pyx_L9:;
218 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":31 */
219 /*try:*/ {
220 __pyx_v_i = 1;
221 }
222 goto __pyx_L11;
223 Py_XDECREF(__pyx_1); __pyx_1 = 0;
224 Py_XDECREF(__pyx_3); __pyx_3 = 0;
225 Py_XDECREF(__pyx_4); __pyx_4 = 0;
227 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":33 */
228 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;}
229 Py_INCREF(__pyx_v_a);
230 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_a);
231 Py_INCREF(__pyx_v_b);
232 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_b);
233 __pyx_2 = PyErr_ExceptionMatches(__pyx_1);
234 Py_DECREF(__pyx_1); __pyx_1 = 0;
235 if (__pyx_2) {
236 __Pyx_AddTraceback("tryexcept.f");
237 if (__Pyx_GetException(&__pyx_3, &__pyx_4, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;}
238 if (__Pyx_SetItemInt(__pyx_v_c, 42, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;}
239 __pyx_v_i = 2;
240 Py_DECREF(__pyx_3); __pyx_3 = 0;
241 Py_DECREF(__pyx_4); __pyx_4 = 0;
242 Py_DECREF(__pyx_1); __pyx_1 = 0;
243 goto __pyx_L11;
244 }
245 goto __pyx_L1;
246 __pyx_L11:;
248 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":36 */
249 __pyx_3 = PyObject_GetIter(__pyx_v_b); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}
250 for (;;) {
251 __pyx_4 = PyIter_Next(__pyx_3);
252 if (!__pyx_4) {
253 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}
254 break;
255 }
256 Py_DECREF(__pyx_v_a);
257 __pyx_v_a = __pyx_4;
258 __pyx_4 = 0;
259 /*try:*/ {
260 __pyx_1 = PyInt_FromLong(42); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; goto __pyx_L14;}
261 __pyx_4 = PyNumber_Multiply(__pyx_v_x, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; goto __pyx_L14;}
262 Py_DECREF(__pyx_1); __pyx_1 = 0;
263 Py_DECREF(__pyx_v_c);
264 __pyx_v_c = __pyx_4;
265 __pyx_4 = 0;
266 }
267 goto __pyx_L15;
268 __pyx_L14:;
269 Py_XDECREF(__pyx_1); __pyx_1 = 0;
270 Py_XDECREF(__pyx_4); __pyx_4 = 0;
272 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":39 */
273 /*except:*/ {
274 __Pyx_AddTraceback("tryexcept.f");
275 if (__Pyx_GetException(&__pyx_1, &__pyx_4, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; goto __pyx_L1;}
276 __pyx_v_i = 17;
277 Py_DECREF(__pyx_1); __pyx_1 = 0;
278 Py_DECREF(__pyx_4); __pyx_4 = 0;
279 Py_DECREF(__pyx_5); __pyx_5 = 0;
280 goto __pyx_L15;
281 }
282 __pyx_L15:;
283 }
284 Py_DECREF(__pyx_3); __pyx_3 = 0;
286 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":42 */
287 /*try:*/ {
288 __pyx_v_i = 1;
289 }
290 goto __pyx_L17;
291 Py_XDECREF(__pyx_1); __pyx_1 = 0;
292 Py_XDECREF(__pyx_4); __pyx_4 = 0;
293 Py_XDECREF(__pyx_5); __pyx_5 = 0;
294 Py_XDECREF(__pyx_3); __pyx_3 = 0;
296 /* "/Local/Projects/D/Pyrex/Source/Tests/4/tryexcept.pyx":44 */
297 /*except:*/ {
298 __Pyx_AddTraceback("tryexcept.f");
299 if (__Pyx_GetException(&__pyx_1, &__pyx_4, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;}
300 __Pyx_Raise(__pyx_1, __pyx_4, __pyx_5);
301 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; goto __pyx_L1;}
302 Py_DECREF(__pyx_1); __pyx_1 = 0;
303 Py_DECREF(__pyx_4); __pyx_4 = 0;
304 Py_DECREF(__pyx_5); __pyx_5 = 0;
305 goto __pyx_L17;
306 }
307 __pyx_L17:;
309 __pyx_r = Py_None; Py_INCREF(Py_None);
310 goto __pyx_L0;
311 __pyx_L1:;
312 Py_XDECREF(__pyx_1);
313 Py_XDECREF(__pyx_3);
314 Py_XDECREF(__pyx_4);
315 Py_XDECREF(__pyx_5);
316 __Pyx_AddTraceback("tryexcept.f");
317 __pyx_r = 0;
318 __pyx_L0:;
319 Py_DECREF(__pyx_v_a);
320 Py_DECREF(__pyx_v_b);
321 Py_DECREF(__pyx_v_c);
322 Py_DECREF(__pyx_v_x);
323 return __pyx_r;
324 }
326 static struct PyMethodDef __pyx_methods[] = {
327 {"f", (PyCFunction)__pyx_f_9tryexcept_f, METH_VARARGS|METH_KEYWORDS, 0},
328 {0, 0, 0, 0}
329 };
331 static void __pyx_init_filenames(void); /*proto*/
333 PyMODINIT_FUNC inittryexcept(void); /*proto*/
334 PyMODINIT_FUNC inittryexcept(void) {
335 __pyx_init_filenames();
336 __pyx_m = Py_InitModule4("tryexcept", __pyx_methods, 0, 0, PYTHON_API_VERSION);
337 if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
338 Py_INCREF(__pyx_m);
339 __pyx_b = PyImport_AddModule("__builtin__");
340 if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
341 if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
342 if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
343 return;
344 __pyx_L1:;
345 __Pyx_AddTraceback("tryexcept");
346 }
348 static char *__pyx_filenames[] = {
349 "tryexcept.pyx",
350 };
352 /* Runtime support code */
354 static void __pyx_init_filenames(void) {
355 __pyx_f = __pyx_filenames;
356 }
358 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
359 Py_XINCREF(type);
360 Py_XINCREF(value);
361 Py_XINCREF(tb);
362 /* First, check the traceback argument, replacing None with NULL. */
363 if (tb == Py_None) {
364 Py_DECREF(tb);
365 tb = 0;
366 }
367 else if (tb != NULL && !PyTraceBack_Check(tb)) {
368 PyErr_SetString(PyExc_TypeError,
369 "raise: arg 3 must be a traceback or None");
370 goto raise_error;
371 }
372 /* Next, replace a missing value with None */
373 if (value == NULL) {
374 value = Py_None;
375 Py_INCREF(value);
376 }
377 #if PY_VERSION_HEX < 0x02050000
378 if (!PyClass_Check(type))
379 #else
380 if (!PyType_Check(type))
381 #endif
382 {
383 /* Raising an instance. The value should be a dummy. */
384 if (value != Py_None) {
385 PyErr_SetString(PyExc_TypeError,
386 "instance exception may not have a separate value");
387 goto raise_error;
388 }
389 /* Normalize to raise <class>, <instance> */
390 Py_DECREF(value);
391 value = type;
392 #if PY_VERSION_HEX < 0x02050000
393 if (PyInstance_Check(type)) {
394 type = (PyObject*) ((PyInstanceObject*)type)->in_class;
395 Py_INCREF(type);
396 }
397 else {
398 PyErr_SetString(PyExc_TypeError,
399 "raise: exception must be an old-style class or instance");
400 goto raise_error;
401 }
402 #else
403 type = (PyObject*) type->ob_type;
404 Py_INCREF(type);
405 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
406 PyErr_SetString(PyExc_TypeError,
407 "raise: exception class must be a subclass of BaseException");
408 goto raise_error;
409 }
410 #endif
411 }
412 PyErr_Restore(type, value, tb);
413 return;
414 raise_error:
415 Py_XDECREF(value);
416 Py_XDECREF(type);
417 Py_XDECREF(tb);
418 return;
419 }
421 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) {
422 PyThreadState *tstate = PyThreadState_Get();
423 PyErr_Fetch(type, value, tb);
424 PyErr_NormalizeException(type, value, tb);
425 if (PyErr_Occurred())
426 goto bad;
427 Py_INCREF(*type);
428 Py_INCREF(*value);
429 Py_INCREF(*tb);
430 Py_XDECREF(tstate->exc_type);
431 Py_XDECREF(tstate->exc_value);
432 Py_XDECREF(tstate->exc_traceback);
433 tstate->exc_type = *type;
434 tstate->exc_value = *value;
435 tstate->exc_traceback = *tb;
436 return 0;
437 bad:
438 Py_XDECREF(*type);
439 Py_XDECREF(*value);
440 Py_XDECREF(*tb);
441 return -1;
442 }
444 static int __Pyx_SetItemInt(PyObject *o, Py_ssize_t i, PyObject *v) {
445 PyTypeObject *t = o->ob_type;
446 int r;
447 if (t->tp_as_sequence && t->tp_as_sequence->sq_item)
448 r = PySequence_SetItem(o, i, v);
449 else {
450 PyObject *j = PyInt_FromLong(i);
451 if (!j)
452 return -1;
453 r = PyObject_SetItem(o, j, v);
454 Py_DECREF(j);
455 }
456 return r;
457 }
459 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
460 while (t->p) {
461 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
462 if (!*t->p)
463 return -1;
464 if (t->i)
465 PyString_InternInPlace(t->p);
466 ++t;
467 }
468 return 0;
469 }
471 #include "compile.h"
472 #include "frameobject.h"
473 #include "traceback.h"
475 static void __Pyx_AddTraceback(char *funcname) {
476 PyObject *py_srcfile = 0;
477 PyObject *py_funcname = 0;
478 PyObject *py_globals = 0;
479 PyObject *empty_tuple = 0;
480 PyObject *empty_string = 0;
481 PyCodeObject *py_code = 0;
482 PyFrameObject *py_frame = 0;
484 py_srcfile = PyString_FromString(__pyx_filename);
485 if (!py_srcfile) goto bad;
486 py_funcname = PyString_FromString(funcname);
487 if (!py_funcname) goto bad;
488 py_globals = PyModule_GetDict(__pyx_m);
489 if (!py_globals) goto bad;
490 empty_tuple = PyTuple_New(0);
491 if (!empty_tuple) goto bad;
492 empty_string = PyString_FromString("");
493 if (!empty_string) goto bad;
494 py_code = PyCode_New(
495 0, /*int argcount,*/
496 0, /*int nlocals,*/
497 0, /*int stacksize,*/
498 0, /*int flags,*/
499 empty_string, /*PyObject *code,*/
500 empty_tuple, /*PyObject *consts,*/
501 empty_tuple, /*PyObject *names,*/
502 empty_tuple, /*PyObject *varnames,*/
503 empty_tuple, /*PyObject *freevars,*/
504 empty_tuple, /*PyObject *cellvars,*/
505 py_srcfile, /*PyObject *filename,*/
506 py_funcname, /*PyObject *name,*/
507 __pyx_lineno, /*int firstlineno,*/
508 empty_string /*PyObject *lnotab*/
509 );
510 if (!py_code) goto bad;
511 py_frame = PyFrame_New(
512 PyThreadState_Get(), /*PyThreadState *tstate,*/
513 py_code, /*PyCodeObject *code,*/
514 py_globals, /*PyObject *globals,*/
515 0 /*PyObject *locals*/
516 );
517 if (!py_frame) goto bad;
518 py_frame->f_lineno = __pyx_lineno;
519 PyTraceBack_Here(py_frame);
520 bad:
521 Py_XDECREF(py_srcfile);
522 Py_XDECREF(py_funcname);
523 Py_XDECREF(empty_tuple);
524 Py_XDECREF(empty_string);
525 Py_XDECREF(py_code);
526 Py_XDECREF(py_frame);
527 }
