Cython has moved to github.
pyrex
view Tests/8/extinheritset.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_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
42 static void __Pyx_AddTraceback(char *funcname); /*proto*/
44 /* Declarations from extinheritset */
47 /* Declarations from implementation of extinheritset */
49 struct __pyx_obj_13extinheritset_Parrot {
50 PyObject_HEAD
51 };
53 struct __pyx_obj_13extinheritset_Norwegian {
54 struct __pyx_obj_13extinheritset_Parrot __pyx_base;
55 };
59 static PyTypeObject *__pyx_ptype_13extinheritset_Parrot = 0;
60 static PyTypeObject *__pyx_ptype_13extinheritset_Norwegian = 0;
65 static __Pyx_StringTabEntry __pyx_string_tab[] = {
66 {0, 0, 0, 0}
67 };
71 /* Implementation of extinheritset */
73 static int __pyx_f_13extinheritset_9Norwegian___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_x); /*proto*/
74 static int __pyx_f_13extinheritset_9Norwegian___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_x) {
75 int __pyx_r;
76 Py_INCREF((PyObject *)__pyx_v_self);
77 Py_INCREF(__pyx_v_i);
78 Py_INCREF(__pyx_v_x);
80 __pyx_r = 0;
81 Py_DECREF((PyObject *)__pyx_v_self);
82 Py_DECREF(__pyx_v_i);
83 Py_DECREF(__pyx_v_x);
84 return __pyx_r;
85 }
87 static int __pyx_f_13extinheritset_9Norwegian___setslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_arg_i, Py_ssize_t __pyx_arg_j, PyObject *__pyx_v_x); /*proto*/
88 static int __pyx_f_13extinheritset_9Norwegian___setslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_arg_i, Py_ssize_t __pyx_arg_j, PyObject *__pyx_v_x) {
89 PyObject *__pyx_v_i = 0;
90 PyObject *__pyx_v_j = 0;
91 int __pyx_r;
92 Py_INCREF((PyObject *)__pyx_v_self);
93 Py_INCREF(__pyx_v_x);
94 __pyx_v_i = PyInt_FromSsize_t(__pyx_arg_i); if (!__pyx_v_i) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; goto __pyx_L1;}
95 __pyx_v_j = PyInt_FromSsize_t(__pyx_arg_j); if (!__pyx_v_j) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; goto __pyx_L1;}
97 __pyx_r = 0;
98 goto __pyx_L0;
99 __pyx_L1:;
100 __Pyx_AddTraceback("extinheritset.Norwegian.__setslice__");
101 __pyx_r = -1;
102 __pyx_L0:;
103 Py_DECREF(__pyx_v_i);
104 Py_DECREF(__pyx_v_j);
105 Py_DECREF((PyObject *)__pyx_v_self);
106 Py_DECREF(__pyx_v_x);
107 return __pyx_r;
108 }
110 static int __pyx_f_13extinheritset_9Norwegian___setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_n, PyObject *__pyx_v_x); /*proto*/
111 static int __pyx_f_13extinheritset_9Norwegian___setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_n, PyObject *__pyx_v_x) {
112 int __pyx_r;
113 Py_INCREF((PyObject *)__pyx_v_self);
114 Py_INCREF(__pyx_v_n);
115 Py_INCREF(__pyx_v_x);
117 __pyx_r = 0;
118 Py_DECREF((PyObject *)__pyx_v_self);
119 Py_DECREF(__pyx_v_n);
120 Py_DECREF(__pyx_v_x);
121 return __pyx_r;
122 }
124 static int __pyx_f_13extinheritset_9Norwegian___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_v); /*proto*/
125 static int __pyx_f_13extinheritset_9Norwegian___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_v) {
126 int __pyx_r;
127 Py_INCREF((PyObject *)__pyx_v_self);
128 Py_INCREF(__pyx_v_i);
129 Py_INCREF(__pyx_v_v);
131 __pyx_r = 0;
132 Py_DECREF((PyObject *)__pyx_v_self);
133 Py_DECREF(__pyx_v_i);
134 Py_DECREF(__pyx_v_v);
135 return __pyx_r;
136 }
138 static PyObject *__pyx_tp_new_13extinheritset_Parrot(PyTypeObject *t, PyObject *a, PyObject *k) {
139 PyObject *o = (*t->tp_alloc)(t, 0);
140 if (!o) return 0;
141 return o;
142 }
144 static void __pyx_tp_dealloc_13extinheritset_Parrot(PyObject *o) {
145 (*o->ob_type->tp_free)(o);
146 }
148 static struct PyMethodDef __pyx_methods_13extinheritset_Parrot[] = {
149 {0, 0, 0, 0}
150 };
152 static PyNumberMethods __pyx_tp_as_number_Parrot = {
153 0, /*nb_add*/
154 0, /*nb_subtract*/
155 0, /*nb_multiply*/
156 0, /*nb_divide*/
157 0, /*nb_remainder*/
158 0, /*nb_divmod*/
159 0, /*nb_power*/
160 0, /*nb_negative*/
161 0, /*nb_positive*/
162 0, /*nb_absolute*/
163 0, /*nb_nonzero*/
164 0, /*nb_invert*/
165 0, /*nb_lshift*/
166 0, /*nb_rshift*/
167 0, /*nb_and*/
168 0, /*nb_xor*/
169 0, /*nb_or*/
170 0, /*nb_coerce*/
171 0, /*nb_int*/
172 0, /*nb_long*/
173 0, /*nb_float*/
174 0, /*nb_oct*/
175 0, /*nb_hex*/
176 0, /*nb_inplace_add*/
177 0, /*nb_inplace_subtract*/
178 0, /*nb_inplace_multiply*/
179 0, /*nb_inplace_divide*/
180 0, /*nb_inplace_remainder*/
181 0, /*nb_inplace_power*/
182 0, /*nb_inplace_lshift*/
183 0, /*nb_inplace_rshift*/
184 0, /*nb_inplace_and*/
185 0, /*nb_inplace_xor*/
186 0, /*nb_inplace_or*/
187 0, /*nb_floor_divide*/
188 0, /*nb_true_divide*/
189 0, /*nb_inplace_floor_divide*/
190 0, /*nb_inplace_true_divide*/
191 #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
192 0, /*nb_index*/
193 #endif
194 };
196 static PySequenceMethods __pyx_tp_as_sequence_Parrot = {
197 0, /*sq_length*/
198 0, /*sq_concat*/
199 0, /*sq_repeat*/
200 0, /*sq_item*/
201 0, /*sq_slice*/
202 0, /*sq_ass_item*/
203 0, /*sq_ass_slice*/
204 0, /*sq_contains*/
205 0, /*sq_inplace_concat*/
206 0, /*sq_inplace_repeat*/
207 };
209 static PyMappingMethods __pyx_tp_as_mapping_Parrot = {
210 0, /*mp_length*/
211 0, /*mp_subscript*/
212 0, /*mp_ass_subscript*/
213 };
215 static PyBufferProcs __pyx_tp_as_buffer_Parrot = {
216 0, /*bf_getreadbuffer*/
217 0, /*bf_getwritebuffer*/
218 0, /*bf_getsegcount*/
219 0, /*bf_getcharbuffer*/
220 };
222 PyTypeObject __pyx_type_13extinheritset_Parrot = {
223 PyObject_HEAD_INIT(0)
224 0, /*ob_size*/
225 "extinheritset.Parrot", /*tp_name*/
226 sizeof(struct __pyx_obj_13extinheritset_Parrot), /*tp_basicsize*/
227 0, /*tp_itemsize*/
228 __pyx_tp_dealloc_13extinheritset_Parrot, /*tp_dealloc*/
229 0, /*tp_print*/
230 0, /*tp_getattr*/
231 0, /*tp_setattr*/
232 0, /*tp_compare*/
233 0, /*tp_repr*/
234 &__pyx_tp_as_number_Parrot, /*tp_as_number*/
235 &__pyx_tp_as_sequence_Parrot, /*tp_as_sequence*/
236 &__pyx_tp_as_mapping_Parrot, /*tp_as_mapping*/
237 0, /*tp_hash*/
238 0, /*tp_call*/
239 0, /*tp_str*/
240 0, /*tp_getattro*/
241 0, /*tp_setattro*/
242 &__pyx_tp_as_buffer_Parrot, /*tp_as_buffer*/
243 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/
244 0, /*tp_doc*/
245 0, /*tp_traverse*/
246 0, /*tp_clear*/
247 0, /*tp_richcompare*/
248 0, /*tp_weaklistoffset*/
249 0, /*tp_iter*/
250 0, /*tp_iternext*/
251 __pyx_methods_13extinheritset_Parrot, /*tp_methods*/
252 0, /*tp_members*/
253 0, /*tp_getset*/
254 0, /*tp_base*/
255 0, /*tp_dict*/
256 0, /*tp_descr_get*/
257 0, /*tp_descr_set*/
258 0, /*tp_dictoffset*/
259 0, /*tp_init*/
260 0, /*tp_alloc*/
261 __pyx_tp_new_13extinheritset_Parrot, /*tp_new*/
262 0, /*tp_free*/
263 0, /*tp_is_gc*/
264 0, /*tp_bases*/
265 0, /*tp_mro*/
266 0, /*tp_cache*/
267 0, /*tp_subclasses*/
268 0, /*tp_weaklist*/
269 };
271 static PyObject *__pyx_tp_new_13extinheritset_Norwegian(PyTypeObject *t, PyObject *a, PyObject *k) {
272 PyObject *o = __pyx_ptype_13extinheritset_Parrot->tp_new(t, a, k);
273 if (!o) return 0;
274 return o;
275 }
277 static void __pyx_tp_dealloc_13extinheritset_Norwegian(PyObject *o) {
278 __pyx_ptype_13extinheritset_Parrot->tp_dealloc(o);
279 }
281 static int __pyx_mp_ass_subscript_13extinheritset_Norwegian(PyObject *o, PyObject *i, PyObject *v) {
282 if (v) {
283 return __pyx_f_13extinheritset_9Norwegian___setitem__(o, i, v);
284 }
285 else {
286 if (__pyx_ptype_13extinheritset_Parrot->tp_as_mapping && __pyx_ptype_13extinheritset_Parrot->tp_as_mapping->mp_ass_subscript)
287 return __pyx_ptype_13extinheritset_Parrot->tp_as_mapping->mp_ass_subscript(o, i, v);
288 PyErr_Format(PyExc_NotImplementedError,
289 "Subscript deletion not supported by %s", o->ob_type->tp_name);
290 return -1;
291 }
292 }
294 static int __pyx_sq_ass_slice_13extinheritset_Norwegian(PyObject *o, Py_ssize_t i, Py_ssize_t j, PyObject *v) {
295 if (v) {
296 return __pyx_f_13extinheritset_9Norwegian___setslice__(o, i, j, v);
297 }
298 else {
299 if (__pyx_ptype_13extinheritset_Parrot->tp_as_sequence && __pyx_ptype_13extinheritset_Parrot->tp_as_sequence->sq_ass_slice)
300 return __pyx_ptype_13extinheritset_Parrot->tp_as_sequence->sq_ass_slice(o, i, j, v);
301 PyErr_Format(PyExc_NotImplementedError,
302 "2-element slice deletion not supported by %s", o->ob_type->tp_name);
303 return -1;
304 }
305 }
307 static int __pyx_tp_setattro_13extinheritset_Norwegian(PyObject *o, PyObject *n, PyObject *v) {
308 if (v) {
309 return __pyx_f_13extinheritset_9Norwegian___setattr__(o, n, v);
310 }
311 else {
312 if (__pyx_ptype_13extinheritset_Parrot->tp_setattro)
313 return __pyx_ptype_13extinheritset_Parrot->tp_setattro(o, n, v);
314 return PyObject_GenericSetAttr(o, n, 0);
315 }
316 }
318 static int __pyx_tp_descr_set_13extinheritset_Norwegian(PyObject *o, PyObject *i, PyObject *v) {
319 if (v) {
320 return __pyx_f_13extinheritset_9Norwegian___set__(o, i, v);
321 }
322 else {
323 if (__pyx_ptype_13extinheritset_Parrot->tp_descr_set)
324 return __pyx_ptype_13extinheritset_Parrot->tp_descr_set(o, i, v);
325 PyErr_SetString(PyExc_NotImplementedError, "__delete__");
326 return -1;
327 }
328 }
330 static struct PyMethodDef __pyx_methods_13extinheritset_Norwegian[] = {
331 {0, 0, 0, 0}
332 };
334 static PyNumberMethods __pyx_tp_as_number_Norwegian = {
335 0, /*nb_add*/
336 0, /*nb_subtract*/
337 0, /*nb_multiply*/
338 0, /*nb_divide*/
339 0, /*nb_remainder*/
340 0, /*nb_divmod*/
341 0, /*nb_power*/
342 0, /*nb_negative*/
343 0, /*nb_positive*/
344 0, /*nb_absolute*/
345 0, /*nb_nonzero*/
346 0, /*nb_invert*/
347 0, /*nb_lshift*/
348 0, /*nb_rshift*/
349 0, /*nb_and*/
350 0, /*nb_xor*/
351 0, /*nb_or*/
352 0, /*nb_coerce*/
353 0, /*nb_int*/
354 0, /*nb_long*/
355 0, /*nb_float*/
356 0, /*nb_oct*/
357 0, /*nb_hex*/
358 0, /*nb_inplace_add*/
359 0, /*nb_inplace_subtract*/
360 0, /*nb_inplace_multiply*/
361 0, /*nb_inplace_divide*/
362 0, /*nb_inplace_remainder*/
363 0, /*nb_inplace_power*/
364 0, /*nb_inplace_lshift*/
365 0, /*nb_inplace_rshift*/
366 0, /*nb_inplace_and*/
367 0, /*nb_inplace_xor*/
368 0, /*nb_inplace_or*/
369 0, /*nb_floor_divide*/
370 0, /*nb_true_divide*/
371 0, /*nb_inplace_floor_divide*/
372 0, /*nb_inplace_true_divide*/
373 #if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
374 0, /*nb_index*/
375 #endif
376 };
378 static PySequenceMethods __pyx_tp_as_sequence_Norwegian = {
379 0, /*sq_length*/
380 0, /*sq_concat*/
381 0, /*sq_repeat*/
382 0, /*sq_item*/
383 0, /*sq_slice*/
384 0, /*sq_ass_item*/
385 __pyx_sq_ass_slice_13extinheritset_Norwegian, /*sq_ass_slice*/
386 0, /*sq_contains*/
387 0, /*sq_inplace_concat*/
388 0, /*sq_inplace_repeat*/
389 };
391 static PyMappingMethods __pyx_tp_as_mapping_Norwegian = {
392 0, /*mp_length*/
393 0, /*mp_subscript*/
394 __pyx_mp_ass_subscript_13extinheritset_Norwegian, /*mp_ass_subscript*/
395 };
397 static PyBufferProcs __pyx_tp_as_buffer_Norwegian = {
398 0, /*bf_getreadbuffer*/
399 0, /*bf_getwritebuffer*/
400 0, /*bf_getsegcount*/
401 0, /*bf_getcharbuffer*/
402 };
404 PyTypeObject __pyx_type_13extinheritset_Norwegian = {
405 PyObject_HEAD_INIT(0)
406 0, /*ob_size*/
407 "extinheritset.Norwegian", /*tp_name*/
408 sizeof(struct __pyx_obj_13extinheritset_Norwegian), /*tp_basicsize*/
409 0, /*tp_itemsize*/
410 __pyx_tp_dealloc_13extinheritset_Norwegian, /*tp_dealloc*/
411 0, /*tp_print*/
412 0, /*tp_getattr*/
413 0, /*tp_setattr*/
414 0, /*tp_compare*/
415 0, /*tp_repr*/
416 &__pyx_tp_as_number_Norwegian, /*tp_as_number*/
417 &__pyx_tp_as_sequence_Norwegian, /*tp_as_sequence*/
418 &__pyx_tp_as_mapping_Norwegian, /*tp_as_mapping*/
419 0, /*tp_hash*/
420 0, /*tp_call*/
421 0, /*tp_str*/
422 0, /*tp_getattro*/
423 __pyx_tp_setattro_13extinheritset_Norwegian, /*tp_setattro*/
424 &__pyx_tp_as_buffer_Norwegian, /*tp_as_buffer*/
425 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/
426 0, /*tp_doc*/
427 0, /*tp_traverse*/
428 0, /*tp_clear*/
429 0, /*tp_richcompare*/
430 0, /*tp_weaklistoffset*/
431 0, /*tp_iter*/
432 0, /*tp_iternext*/
433 __pyx_methods_13extinheritset_Norwegian, /*tp_methods*/
434 0, /*tp_members*/
435 0, /*tp_getset*/
436 0, /*tp_base*/
437 0, /*tp_dict*/
438 0, /*tp_descr_get*/
439 __pyx_tp_descr_set_13extinheritset_Norwegian, /*tp_descr_set*/
440 0, /*tp_dictoffset*/
441 0, /*tp_init*/
442 0, /*tp_alloc*/
443 __pyx_tp_new_13extinheritset_Norwegian, /*tp_new*/
444 0, /*tp_free*/
445 0, /*tp_is_gc*/
446 0, /*tp_bases*/
447 0, /*tp_mro*/
448 0, /*tp_cache*/
449 0, /*tp_subclasses*/
450 0, /*tp_weaklist*/
451 };
453 static struct PyMethodDef __pyx_methods[] = {
454 {0, 0, 0, 0}
455 };
457 static void __pyx_init_filenames(void); /*proto*/
459 PyMODINIT_FUNC initextinheritset(void); /*proto*/
460 PyMODINIT_FUNC initextinheritset(void) {
461 __pyx_init_filenames();
462 __pyx_m = Py_InitModule4("extinheritset", __pyx_methods, 0, 0, PYTHON_API_VERSION);
463 if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
464 Py_INCREF(__pyx_m);
465 __pyx_b = PyImport_AddModule("__builtin__");
466 if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
467 if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
468 if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
469 if (PyType_Ready(&__pyx_type_13extinheritset_Parrot) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}
470 if (PyObject_SetAttrString(__pyx_m, "Parrot", (PyObject *)&__pyx_type_13extinheritset_Parrot) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}
471 __pyx_ptype_13extinheritset_Parrot = &__pyx_type_13extinheritset_Parrot;
472 __pyx_type_13extinheritset_Norwegian.tp_base = __pyx_ptype_13extinheritset_Parrot;
473 if (PyType_Ready(&__pyx_type_13extinheritset_Norwegian) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;}
474 if (PyObject_SetAttrString(__pyx_m, "Norwegian", (PyObject *)&__pyx_type_13extinheritset_Norwegian) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; goto __pyx_L1;}
475 __pyx_ptype_13extinheritset_Norwegian = &__pyx_type_13extinheritset_Norwegian;
477 /* "/Local/Projects/D/Pyrex/Source/Tests/8/extinheritset.pyx":15 */
478 return;
479 __pyx_L1:;
480 __Pyx_AddTraceback("extinheritset");
481 }
483 static char *__pyx_filenames[] = {
484 "extinheritset.pyx",
485 };
487 /* Runtime support code */
489 static void __pyx_init_filenames(void) {
490 __pyx_f = __pyx_filenames;
491 }
493 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
494 while (t->p) {
495 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
496 if (!*t->p)
497 return -1;
498 if (t->i)
499 PyString_InternInPlace(t->p);
500 ++t;
501 }
502 return 0;
503 }
505 #include "compile.h"
506 #include "frameobject.h"
507 #include "traceback.h"
509 static void __Pyx_AddTraceback(char *funcname) {
510 PyObject *py_srcfile = 0;
511 PyObject *py_funcname = 0;
512 PyObject *py_globals = 0;
513 PyObject *empty_tuple = 0;
514 PyObject *empty_string = 0;
515 PyCodeObject *py_code = 0;
516 PyFrameObject *py_frame = 0;
518 py_srcfile = PyString_FromString(__pyx_filename);
519 if (!py_srcfile) goto bad;
520 py_funcname = PyString_FromString(funcname);
521 if (!py_funcname) goto bad;
522 py_globals = PyModule_GetDict(__pyx_m);
523 if (!py_globals) goto bad;
524 empty_tuple = PyTuple_New(0);
525 if (!empty_tuple) goto bad;
526 empty_string = PyString_FromString("");
527 if (!empty_string) goto bad;
528 py_code = PyCode_New(
529 0, /*int argcount,*/
530 0, /*int nlocals,*/
531 0, /*int stacksize,*/
532 0, /*int flags,*/
533 empty_string, /*PyObject *code,*/
534 empty_tuple, /*PyObject *consts,*/
535 empty_tuple, /*PyObject *names,*/
536 empty_tuple, /*PyObject *varnames,*/
537 empty_tuple, /*PyObject *freevars,*/
538 empty_tuple, /*PyObject *cellvars,*/
539 py_srcfile, /*PyObject *filename,*/
540 py_funcname, /*PyObject *name,*/
541 __pyx_lineno, /*int firstlineno,*/
542 empty_string /*PyObject *lnotab*/
543 );
544 if (!py_code) goto bad;
545 py_frame = PyFrame_New(
546 PyThreadState_Get(), /*PyThreadState *tstate,*/
547 py_code, /*PyCodeObject *code,*/
548 py_globals, /*PyObject *globals,*/
549 0 /*PyObject *locals*/
550 );
551 if (!py_frame) goto bad;
552 py_frame->f_lineno = __pyx_lineno;
553 PyTraceBack_Here(py_frame);
554 bad:
555 Py_XDECREF(py_srcfile);
556 Py_XDECREF(py_funcname);
557 Py_XDECREF(empty_tuple);
558 Py_XDECREF(empty_string);
559 Py_XDECREF(py_code);
560 Py_XDECREF(py_frame);
561 }
