| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef _CHEETAH_H_ |
| 6 |
#define _CHEETAH_H_ |
| 7 |
|
| 8 |
#include <Python.h> |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef Py_RETURN_TRUE |
| 18 |
#define Py_RETURN_TRUE Py_INCREF(Py_True);\ |
| 19 |
return Py_True |
| 20 |
#endif |
| 21 |
#ifndef Py_RETURN_FALSE |
| 22 |
#define Py_RETURN_FALSE Py_INCREF(Py_False);\ |
| 23 |
return Py_False |
| 24 |
#endif |
| 25 |
#ifndef Py_RETURN_NONE |
| 26 |
#define Py_RETURN_NONE Py_INCREF(Py_None);\ |
| 27 |
return Py_None |
| 28 |
#endif |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
typedef struct { |
| 35 |
PyObject_HEAD |
| 36 |
|
| 37 |
} PyFilter; |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
#ifdef __cplusplus |
| 44 |
} |
| 45 |
#endif |
| 46 |
|
| 47 |
#endif |