1
/* Generated by Pyrex 0.9.4 on Tue Jun 20 16:45:13 2006 */
4
#include "structmember.h"
6
#define PY_LONG_LONG LONG_LONG
9
#define __PYX_EXTERN_C extern "C"
11
#define __PYX_EXTERN_C extern
13
__PYX_EXTERN_C double pow(double, double);
18
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
19
typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
20
static PyObject *__Pyx_UnpackItem(PyObject *, int); /*proto*/
21
static int __Pyx_EndUnpack(PyObject *, int); /*proto*/
22
static int __Pyx_PrintItem(PyObject *); /*proto*/
23
static int __Pyx_PrintNewline(void); /*proto*/
24
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
25
static void __Pyx_ReRaise(void); /*proto*/
26
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
27
static PyObject *__Pyx_GetExcValue(void); /*proto*/
28
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/
29
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
30
static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], int nargs, PyObject **args2, PyObject **kwds2); /*proto*/
31
static void __Pyx_WriteUnraisable(char *name); /*proto*/
32
static void __Pyx_AddTraceback(char *funcname); /*proto*/
33
static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/
34
static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/
35
static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/
36
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/
37
static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/
38
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
39
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
41
static PyObject *__pyx_m;
42
static PyObject *__pyx_b;
43
static int __pyx_lineno;
44
static char *__pyx_filename;
45
static char **__pyx_f;
47
/* Declarations from _comp_lzo */
50
/* Implementation of _comp_lzo */
52
static PyObject *__pyx_n_register_;
54
static PyObject *__pyx_f_9_comp_lzo_register_(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
55
static PyObject *__pyx_f_9_comp_lzo_register_(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
56
char (*__pyx_v_version);
58
PyObject *__pyx_v_compinfo;
61
PyObject *__pyx_2 = 0;
62
PyObject *__pyx_3 = 0;
63
PyObject *__pyx_4 = 0;
64
static char *__pyx_argnames[] = {0};
65
if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
66
__pyx_v_compinfo = Py_None; Py_INCREF(Py_None);
68
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":10 */
69
__pyx_1 = (!register_lzo((&__pyx_v_version),(&__pyx_v_date)));
72
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":11 */
80
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":13 */
81
__pyx_2 = PyString_FromString(__pyx_v_version); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
82
__pyx_3 = PyString_FromString(__pyx_v_date); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
83
__pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
84
PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
85
PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3);
88
Py_DECREF(__pyx_v_compinfo);
89
__pyx_v_compinfo = __pyx_4;
92
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":14 */
93
free(__pyx_v_version);
95
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":15 */
98
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":16 */
99
Py_INCREF(__pyx_v_compinfo);
100
__pyx_r = __pyx_v_compinfo;
103
__pyx_r = Py_None; Py_INCREF(Py_None);
109
__Pyx_AddTraceback("_comp_lzo.register_");
112
Py_DECREF(__pyx_v_compinfo);
116
static __Pyx_InternTabEntry __pyx_intern_tab[] = {
117
{&__pyx_n_register_, "register_"},
121
static struct PyMethodDef __pyx_methods[] = {
122
{"register_", (PyCFunction)__pyx_f_9_comp_lzo_register_, METH_VARARGS|METH_KEYWORDS, 0},
126
static void __pyx_init_filenames(void); /*proto*/
128
PyMODINIT_FUNC init_comp_lzo(void); /*proto*/
129
PyMODINIT_FUNC init_comp_lzo(void) {
130
__pyx_init_filenames();
131
__pyx_m = Py_InitModule4("_comp_lzo", __pyx_methods, 0, 0, PYTHON_API_VERSION);
132
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
133
__pyx_b = PyImport_AddModule("__builtin__");
134
if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
135
if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
136
if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
138
/* "/tmp/pytables-1.3.2/src/_comp_lzo.pyx":7 */
141
__Pyx_AddTraceback("_comp_lzo");
144
static char *__pyx_filenames[] = {
148
/* Runtime support code */
150
static void __pyx_init_filenames(void) {
151
__pyx_f = __pyx_filenames;
154
static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) {
156
*t->p = PyString_InternFromString(t->s);
165
#include "frameobject.h"
166
#include "traceback.h"
168
static void __Pyx_AddTraceback(char *funcname) {
169
PyObject *py_srcfile = 0;
170
PyObject *py_funcname = 0;
171
PyObject *py_globals = 0;
172
PyObject *empty_tuple = 0;
173
PyObject *empty_string = 0;
174
PyCodeObject *py_code = 0;
175
PyFrameObject *py_frame = 0;
177
py_srcfile = PyString_FromString(__pyx_filename);
178
if (!py_srcfile) goto bad;
179
py_funcname = PyString_FromString(funcname);
180
if (!py_funcname) goto bad;
181
py_globals = PyModule_GetDict(__pyx_m);
182
if (!py_globals) goto bad;
183
empty_tuple = PyTuple_New(0);
184
if (!empty_tuple) goto bad;
185
empty_string = PyString_FromString("");
186
if (!empty_string) goto bad;
187
py_code = PyCode_New(
190
0, /*int stacksize,*/
192
empty_string, /*PyObject *code,*/
193
empty_tuple, /*PyObject *consts,*/
194
empty_tuple, /*PyObject *names,*/
195
empty_tuple, /*PyObject *varnames,*/
196
empty_tuple, /*PyObject *freevars,*/
197
empty_tuple, /*PyObject *cellvars,*/
198
py_srcfile, /*PyObject *filename,*/
199
py_funcname, /*PyObject *name,*/
200
__pyx_lineno, /*int firstlineno,*/
201
empty_string /*PyObject *lnotab*/
203
if (!py_code) goto bad;
204
py_frame = PyFrame_New(
205
PyThreadState_Get(), /*PyThreadState *tstate,*/
206
py_code, /*PyCodeObject *code,*/
207
py_globals, /*PyObject *globals,*/
208
0 /*PyObject *locals*/
210
if (!py_frame) goto bad;
211
py_frame->f_lineno = __pyx_lineno;
212
PyTraceBack_Here(py_frame);
214
Py_XDECREF(py_srcfile);
215
Py_XDECREF(py_funcname);
216
Py_XDECREF(empty_tuple);
217
Py_XDECREF(empty_string);
219
Py_XDECREF(py_frame);