Cython has moved to github.

pyrex

view Tests/8/extinherit.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 int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
42 static void __Pyx_WriteUnraisable(char *name); /*proto*/
44 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
46 static void __Pyx_AddTraceback(char *funcname); /*proto*/
48 /* Declarations from extinherit */
51 /* Declarations from implementation of extinherit */
53 struct __pyx_obj_10extinherit_Parrot {
54 PyObject_HEAD
55 PyObject *name;
56 int alive;
57 };
59 struct __pyx_obj_10extinherit_Norwegian {
60 struct __pyx_obj_10extinherit_Parrot __pyx_base;
61 PyObject *plumage_colour;
62 };
66 static PyTypeObject *__pyx_ptype_10extinherit_Parrot = 0;
67 static PyTypeObject *__pyx_ptype_10extinherit_Norwegian = 0;
68 static void __pyx_f_10extinherit_rest(struct __pyx_obj_10extinherit_Norwegian *); /*proto*/
73 static __Pyx_StringTabEntry __pyx_string_tab[] = {
74 {0, 0, 0, 0}
75 };
79 /* Implementation of extinherit */
81 static void __pyx_f_10extinherit_rest(struct __pyx_obj_10extinherit_Norwegian *__pyx_v_polly) {
82 struct __pyx_obj_10extinherit_Parrot *__pyx_v_fred;
83 PyObject *__pyx_v_spam;
84 Py_INCREF((PyObject *)__pyx_v_polly);
85 __pyx_v_fred = ((struct __pyx_obj_10extinherit_Parrot *)Py_None); Py_INCREF(Py_None);
86 __pyx_v_spam = Py_None; Py_INCREF(Py_None);
88 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":11 */
89 Py_INCREF(((PyObject *)__pyx_v_polly));
90 Py_DECREF(((PyObject *)__pyx_v_fred));
91 __pyx_v_fred = ((struct __pyx_obj_10extinherit_Parrot *)__pyx_v_polly);
93 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":12 */
94 if (!__Pyx_TypeTest(((PyObject *)__pyx_v_fred), __pyx_ptype_10extinherit_Norwegian)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;}
95 Py_INCREF(((PyObject *)__pyx_v_fred));
96 Py_DECREF(((PyObject *)__pyx_v_polly));
97 __pyx_v_polly = ((struct __pyx_obj_10extinherit_Norwegian *)__pyx_v_fred);
99 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":13 */
100 if (!__Pyx_TypeTest(__pyx_v_spam, __pyx_ptype_10extinherit_Norwegian)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
101 Py_INCREF(__pyx_v_spam);
102 Py_DECREF(((PyObject *)__pyx_v_polly));
103 __pyx_v_polly = ((struct __pyx_obj_10extinherit_Norwegian *)__pyx_v_spam);
105 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":14 */
106 Py_INCREF(((PyObject *)__pyx_v_polly));
107 Py_DECREF(__pyx_v_spam);
108 __pyx_v_spam = ((PyObject *)__pyx_v_polly);
110 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":15 */
111 __pyx_v_polly->__pyx_base.alive = 0;
113 goto __pyx_L0;
114 __pyx_L1:;
115 __Pyx_WriteUnraisable("extinherit.rest");
116 __pyx_L0:;
117 Py_DECREF(__pyx_v_fred);
118 Py_DECREF(__pyx_v_spam);
119 Py_DECREF((PyObject *)__pyx_v_polly);
120 }
122 static PyObject *__pyx_tp_new_10extinherit_Parrot(PyTypeObject *t, PyObject *a, PyObject *k) {
123 struct __pyx_obj_10extinherit_Parrot *p;
124 PyObject *o = (*t->tp_alloc)(t, 0);
125 if (!o) return 0;
126 p = ((struct __pyx_obj_10extinherit_Parrot *)o);
127 p->name = Py_None; Py_INCREF(Py_None);
128 return o;
129 }
131 static void __pyx_tp_dealloc_10extinherit_Parrot(PyObject *o) {
132 struct __pyx_obj_10extinherit_Parrot *p = (struct __pyx_obj_10extinherit_Parrot *)o;
133 Py_XDECREF(p->name);
134 (*o->ob_type->tp_free)(o);
135 }
137 static int __pyx_tp_traverse_10extinherit_Parrot(PyObject *o, visitproc v, void *a) {
138 int e;
139 struct __pyx_obj_10extinherit_Parrot *p = (struct __pyx_obj_10extinherit_Parrot *)o;
140 if (p->name) {
141 e = (*v)(p->name, a); if (e) return e;
142 }
143 return 0;
144 }
146 static int __pyx_tp_clear_10extinherit_Parrot(PyObject *o) {
147 struct __pyx_obj_10extinherit_Parrot *p = (struct __pyx_obj_10extinherit_Parrot *)o;
148 PyObject *t;
149 t = p->name;
150 p->name = Py_None; Py_INCREF(Py_None);
151 Py_XDECREF(t);
152 return 0;
153 }
155 static struct PyMethodDef __pyx_methods_10extinherit_Parrot[] = {
156 {0, 0, 0, 0}
157 };
159 static PyNumberMethods __pyx_tp_as_number_Parrot = {
160 0, /*nb_add*/
161 0, /*nb_subtract*/
162 0, /*nb_multiply*/
163 0, /*nb_divide*/
164 0, /*nb_remainder*/
165 0, /*nb_divmod*/
166 0, /*nb_power*/
167 0, /*nb_negative*/
168 0, /*nb_positive*/
169 0, /*nb_absolute*/
170 0, /*nb_nonzero*/
171 0, /*nb_invert*/
172 0, /*nb_lshift*/
173 0, /*nb_rshift*/
174 0, /*nb_and*/
175 0, /*nb_xor*/
176 0, /*nb_or*/
177 0, /*nb_coerce*/
178 0, /*nb_int*/
179 0, /*nb_long*/
180 0, /*nb_float*/
181 0, /*nb_oct*/
182 0, /*nb_hex*/
183 0, /*nb_inplace_add*/
184 0, /*nb_inplace_subtract*/
185 0, /*nb_inplace_multiply*/
186 0, /*nb_inplace_divide*/
187 0, /*nb_inplace_remainder*/
188 0, /*nb_inplace_power*/
189 0, /*nb_inplace_lshift*/
190 0, /*nb_inplace_rshift*/
191 0, /*nb_inplace_and*/
192 0, /*nb_inplace_xor*/
193 0, /*nb_inplace_or*/
194 0, /*nb_floor_divide*/
195 0, /*nb_true_divide*/
196 0, /*nb_inplace_floor_divide*/
197 0, /*nb_inplace_true_divide*/
198 #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
199 0, /*nb_index*/
200 #endif
201 };
203 static PySequenceMethods __pyx_tp_as_sequence_Parrot = {
204 0, /*sq_length*/
205 0, /*sq_concat*/
206 0, /*sq_repeat*/
207 0, /*sq_item*/
208 0, /*sq_slice*/
209 0, /*sq_ass_item*/
210 0, /*sq_ass_slice*/
211 0, /*sq_contains*/
212 0, /*sq_inplace_concat*/
213 0, /*sq_inplace_repeat*/
214 };
216 static PyMappingMethods __pyx_tp_as_mapping_Parrot = {
217 0, /*mp_length*/
218 0, /*mp_subscript*/
219 0, /*mp_ass_subscript*/
220 };
222 static PyBufferProcs __pyx_tp_as_buffer_Parrot = {
223 0, /*bf_getreadbuffer*/
224 0, /*bf_getwritebuffer*/
225 0, /*bf_getsegcount*/
226 0, /*bf_getcharbuffer*/
227 };
229 PyTypeObject __pyx_type_10extinherit_Parrot = {
230 PyObject_HEAD_INIT(0)
231 0, /*ob_size*/
232 "extinherit.Parrot", /*tp_name*/
233 sizeof(struct __pyx_obj_10extinherit_Parrot), /*tp_basicsize*/
234 0, /*tp_itemsize*/
235 __pyx_tp_dealloc_10extinherit_Parrot, /*tp_dealloc*/
236 0, /*tp_print*/
237 0, /*tp_getattr*/
238 0, /*tp_setattr*/
239 0, /*tp_compare*/
240 0, /*tp_repr*/
241 &__pyx_tp_as_number_Parrot, /*tp_as_number*/
242 &__pyx_tp_as_sequence_Parrot, /*tp_as_sequence*/
243 &__pyx_tp_as_mapping_Parrot, /*tp_as_mapping*/
244 0, /*tp_hash*/
245 0, /*tp_call*/
246 0, /*tp_str*/
247 0, /*tp_getattro*/
248 0, /*tp_setattro*/
249 &__pyx_tp_as_buffer_Parrot, /*tp_as_buffer*/
250 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
251 0, /*tp_doc*/
252 __pyx_tp_traverse_10extinherit_Parrot, /*tp_traverse*/
253 __pyx_tp_clear_10extinherit_Parrot, /*tp_clear*/
254 0, /*tp_richcompare*/
255 0, /*tp_weaklistoffset*/
256 0, /*tp_iter*/
257 0, /*tp_iternext*/
258 __pyx_methods_10extinherit_Parrot, /*tp_methods*/
259 0, /*tp_members*/
260 0, /*tp_getset*/
261 0, /*tp_base*/
262 0, /*tp_dict*/
263 0, /*tp_descr_get*/
264 0, /*tp_descr_set*/
265 0, /*tp_dictoffset*/
266 0, /*tp_init*/
267 0, /*tp_alloc*/
268 __pyx_tp_new_10extinherit_Parrot, /*tp_new*/
269 0, /*tp_free*/
270 0, /*tp_is_gc*/
271 0, /*tp_bases*/
272 0, /*tp_mro*/
273 0, /*tp_cache*/
274 0, /*tp_subclasses*/
275 0, /*tp_weaklist*/
276 };
278 static PyObject *__pyx_tp_new_10extinherit_Norwegian(PyTypeObject *t, PyObject *a, PyObject *k) {
279 struct __pyx_obj_10extinherit_Norwegian *p;
280 PyObject *o = __pyx_ptype_10extinherit_Parrot->tp_new(t, a, k);
281 if (!o) return 0;
282 p = ((struct __pyx_obj_10extinherit_Norwegian *)o);
283 p->plumage_colour = Py_None; Py_INCREF(Py_None);
284 return o;
285 }
287 static void __pyx_tp_dealloc_10extinherit_Norwegian(PyObject *o) {
288 struct __pyx_obj_10extinherit_Norwegian *p = (struct __pyx_obj_10extinherit_Norwegian *)o;
289 Py_XDECREF(p->plumage_colour);
290 __pyx_ptype_10extinherit_Parrot->tp_dealloc(o);
291 }
293 static int __pyx_tp_traverse_10extinherit_Norwegian(PyObject *o, visitproc v, void *a) {
294 int e;
295 struct __pyx_obj_10extinherit_Norwegian *p = (struct __pyx_obj_10extinherit_Norwegian *)o;
296 traverseproc t;
297 if ((t = __pyx_ptype_10extinherit_Parrot->tp_traverse)) {
298 e = t(o, v, a); if (e) return e;
299 }
300 if (p->plumage_colour) {
301 e = (*v)(p->plumage_colour, a); if (e) return e;
302 }
303 return 0;
304 }
306 static int __pyx_tp_clear_10extinherit_Norwegian(PyObject *o) {
307 struct __pyx_obj_10extinherit_Norwegian *p = (struct __pyx_obj_10extinherit_Norwegian *)o;
308 PyObject *t;
309 inquiry c;
310 if ((c = __pyx_ptype_10extinherit_Parrot->tp_clear)) {
311 c(o);
312 }
313 t = p->plumage_colour;
314 p->plumage_colour = Py_None; Py_INCREF(Py_None);
315 Py_XDECREF(t);
316 return 0;
317 }
319 static struct PyMethodDef __pyx_methods_10extinherit_Norwegian[] = {
320 {0, 0, 0, 0}
321 };
323 static PyNumberMethods __pyx_tp_as_number_Norwegian = {
324 0, /*nb_add*/
325 0, /*nb_subtract*/
326 0, /*nb_multiply*/
327 0, /*nb_divide*/
328 0, /*nb_remainder*/
329 0, /*nb_divmod*/
330 0, /*nb_power*/
331 0, /*nb_negative*/
332 0, /*nb_positive*/
333 0, /*nb_absolute*/
334 0, /*nb_nonzero*/
335 0, /*nb_invert*/
336 0, /*nb_lshift*/
337 0, /*nb_rshift*/
338 0, /*nb_and*/
339 0, /*nb_xor*/
340 0, /*nb_or*/
341 0, /*nb_coerce*/
342 0, /*nb_int*/
343 0, /*nb_long*/
344 0, /*nb_float*/
345 0, /*nb_oct*/
346 0, /*nb_hex*/
347 0, /*nb_inplace_add*/
348 0, /*nb_inplace_subtract*/
349 0, /*nb_inplace_multiply*/
350 0, /*nb_inplace_divide*/
351 0, /*nb_inplace_remainder*/
352 0, /*nb_inplace_power*/
353 0, /*nb_inplace_lshift*/
354 0, /*nb_inplace_rshift*/
355 0, /*nb_inplace_and*/
356 0, /*nb_inplace_xor*/
357 0, /*nb_inplace_or*/
358 0, /*nb_floor_divide*/
359 0, /*nb_true_divide*/
360 0, /*nb_inplace_floor_divide*/
361 0, /*nb_inplace_true_divide*/
362 #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
363 0, /*nb_index*/
364 #endif
365 };
367 static PySequenceMethods __pyx_tp_as_sequence_Norwegian = {
368 0, /*sq_length*/
369 0, /*sq_concat*/
370 0, /*sq_repeat*/
371 0, /*sq_item*/
372 0, /*sq_slice*/
373 0, /*sq_ass_item*/
374 0, /*sq_ass_slice*/
375 0, /*sq_contains*/
376 0, /*sq_inplace_concat*/
377 0, /*sq_inplace_repeat*/
378 };
380 static PyMappingMethods __pyx_tp_as_mapping_Norwegian = {
381 0, /*mp_length*/
382 0, /*mp_subscript*/
383 0, /*mp_ass_subscript*/
384 };
386 static PyBufferProcs __pyx_tp_as_buffer_Norwegian = {
387 0, /*bf_getreadbuffer*/
388 0, /*bf_getwritebuffer*/
389 0, /*bf_getsegcount*/
390 0, /*bf_getcharbuffer*/
391 };
393 PyTypeObject __pyx_type_10extinherit_Norwegian = {
394 PyObject_HEAD_INIT(0)
395 0, /*ob_size*/
396 "extinherit.Norwegian", /*tp_name*/
397 sizeof(struct __pyx_obj_10extinherit_Norwegian), /*tp_basicsize*/
398 0, /*tp_itemsize*/
399 __pyx_tp_dealloc_10extinherit_Norwegian, /*tp_dealloc*/
400 0, /*tp_print*/
401 0, /*tp_getattr*/
402 0, /*tp_setattr*/
403 0, /*tp_compare*/
404 0, /*tp_repr*/
405 &__pyx_tp_as_number_Norwegian, /*tp_as_number*/
406 &__pyx_tp_as_sequence_Norwegian, /*tp_as_sequence*/
407 &__pyx_tp_as_mapping_Norwegian, /*tp_as_mapping*/
408 0, /*tp_hash*/
409 0, /*tp_call*/
410 0, /*tp_str*/
411 0, /*tp_getattro*/
412 0, /*tp_setattro*/
413 &__pyx_tp_as_buffer_Norwegian, /*tp_as_buffer*/
414 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
415 0, /*tp_doc*/
416 __pyx_tp_traverse_10extinherit_Norwegian, /*tp_traverse*/
417 __pyx_tp_clear_10extinherit_Norwegian, /*tp_clear*/
418 0, /*tp_richcompare*/
419 0, /*tp_weaklistoffset*/
420 0, /*tp_iter*/
421 0, /*tp_iternext*/
422 __pyx_methods_10extinherit_Norwegian, /*tp_methods*/
423 0, /*tp_members*/
424 0, /*tp_getset*/
425 0, /*tp_base*/
426 0, /*tp_dict*/
427 0, /*tp_descr_get*/
428 0, /*tp_descr_set*/
429 0, /*tp_dictoffset*/
430 0, /*tp_init*/
431 0, /*tp_alloc*/
432 __pyx_tp_new_10extinherit_Norwegian, /*tp_new*/
433 0, /*tp_free*/
434 0, /*tp_is_gc*/
435 0, /*tp_bases*/
436 0, /*tp_mro*/
437 0, /*tp_cache*/
438 0, /*tp_subclasses*/
439 0, /*tp_weaklist*/
440 };
442 static struct PyMethodDef __pyx_methods[] = {
443 {0, 0, 0, 0}
444 };
446 static void __pyx_init_filenames(void); /*proto*/
448 PyMODINIT_FUNC initextinherit(void); /*proto*/
449 PyMODINIT_FUNC initextinherit(void) {
450 __pyx_init_filenames();
451 __pyx_m = Py_InitModule4("extinherit", __pyx_methods, 0, 0, PYTHON_API_VERSION);
452 if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
453 Py_INCREF(__pyx_m);
454 __pyx_b = PyImport_AddModule("__builtin__");
455 if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
456 if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
457 if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
458 __pyx_type_10extinherit_Parrot.tp_free = _PyObject_GC_Del;
459 if (PyType_Ready(&__pyx_type_10extinherit_Parrot) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}
460 if (PyObject_SetAttrString(__pyx_m, "Parrot", (PyObject *)&__pyx_type_10extinherit_Parrot) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}
461 __pyx_ptype_10extinherit_Parrot = &__pyx_type_10extinherit_Parrot;
462 __pyx_type_10extinherit_Norwegian.tp_base = __pyx_ptype_10extinherit_Parrot;
463 __pyx_type_10extinherit_Norwegian.tp_free = _PyObject_GC_Del;
464 if (PyType_Ready(&__pyx_type_10extinherit_Norwegian) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; goto __pyx_L1;}
465 if (PyObject_SetAttrString(__pyx_m, "Norwegian", (PyObject *)&__pyx_type_10extinherit_Norwegian) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; goto __pyx_L1;}
466 __pyx_ptype_10extinherit_Norwegian = &__pyx_type_10extinherit_Norwegian;
468 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinherit.pyx":8 */
469 return;
470 __pyx_L1:;
471 __Pyx_AddTraceback("extinherit");
472 }
474 static char *__pyx_filenames[] = {
475 "extinherit.pyx",
476 };
478 /* Runtime support code */
480 static void __pyx_init_filenames(void) {
481 __pyx_f = __pyx_filenames;
482 }
484 static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
485 if (!type) {
486 PyErr_Format(PyExc_SystemError, "Missing type object");
487 return 0;
488 }
489 if (obj == Py_None || PyObject_TypeCheck(obj, type))
490 return 1;
491 PyErr_Format(PyExc_TypeError, "Cannot convert %s to %s",
492 obj->ob_type->tp_name, type->tp_name);
493 return 0;
494 }
496 static void __Pyx_WriteUnraisable(char *name) {
497 PyObject *old_exc, *old_val, *old_tb;
498 PyObject *ctx;
499 PyErr_Fetch(&old_exc, &old_val, &old_tb);
500 ctx = PyString_FromString(name);
501 PyErr_Restore(old_exc, old_val, old_tb);
502 if (!ctx)
503 ctx = Py_None;
504 PyErr_WriteUnraisable(ctx);
505 }
507 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
508 while (t->p) {
509 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
510 if (!*t->p)
511 return -1;
512 if (t->i)
513 PyString_InternInPlace(t->p);
514 ++t;
515 }
516 return 0;
517 }
519 #include "compile.h"
520 #include "frameobject.h"
521 #include "traceback.h"
523 static void __Pyx_AddTraceback(char *funcname) {
524 PyObject *py_srcfile = 0;
525 PyObject *py_funcname = 0;
526 PyObject *py_globals = 0;
527 PyObject *empty_tuple = 0;
528 PyObject *empty_string = 0;
529 PyCodeObject *py_code = 0;
530 PyFrameObject *py_frame = 0;
532 py_srcfile = PyString_FromString(__pyx_filename);
533 if (!py_srcfile) goto bad;
534 py_funcname = PyString_FromString(funcname);
535 if (!py_funcname) goto bad;
536 py_globals = PyModule_GetDict(__pyx_m);
537 if (!py_globals) goto bad;
538 empty_tuple = PyTuple_New(0);
539 if (!empty_tuple) goto bad;
540 empty_string = PyString_FromString("");
541 if (!empty_string) goto bad;
542 py_code = PyCode_New(
543 0, /*int argcount,*/
544 0, /*int nlocals,*/
545 0, /*int stacksize,*/
546 0, /*int flags,*/
547 empty_string, /*PyObject *code,*/
548 empty_tuple, /*PyObject *consts,*/
549 empty_tuple, /*PyObject *names,*/
550 empty_tuple, /*PyObject *varnames,*/
551 empty_tuple, /*PyObject *freevars,*/
552 empty_tuple, /*PyObject *cellvars,*/
553 py_srcfile, /*PyObject *filename,*/
554 py_funcname, /*PyObject *name,*/
555 __pyx_lineno, /*int firstlineno,*/
556 empty_string /*PyObject *lnotab*/
557 );
558 if (!py_code) goto bad;
559 py_frame = PyFrame_New(
560 PyThreadState_Get(), /*PyThreadState *tstate,*/
561 py_code, /*PyCodeObject *code,*/
562 py_globals, /*PyObject *globals,*/
563 0 /*PyObject *locals*/
564 );
565 if (!py_frame) goto bad;
566 py_frame->f_lineno = __pyx_lineno;
567 PyTraceBack_Here(py_frame);
568 bad:
569 Py_XDECREF(py_srcfile);
570 Py_XDECREF(py_funcname);
571 Py_XDECREF(empty_tuple);
572 Py_XDECREF(empty_string);
573 Py_XDECREF(py_code);
574 Py_XDECREF(py_frame);
575 }