#include <python2.5/Python.h>#include <python2.5/pythread.h>#include <python2.5/marshal.h>#include <python2.5/frameobject.h>#include "PY_API.h"#include <SYS/SYS_Types.h>#include <boost/preprocessor/seq/for_each.hpp>#include <boost/preprocessor/seq/for_each_i.hpp>#include <boost/preprocessor/seq/seq.hpp>#include <boost/preprocessor/punctuation/comma_if.hpp>#include <boost/preprocessor/cat.hpp>#include <boost/preprocessor/stringize.hpp>#include <string.h>#include <stdarg.h>Go to the source code of this file.
Defines | |
| #define | COMPILE_TIME_DEPENDENCY_ON_PYTHON |
| #define | PY_WRAPPED_FUNCTIONS |
| #define | PY_WRAPPED_CONSTANTS |
| #define | PY_FOR_EACH_SEQ_OF_2(macro, seq) BOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_2, macro, seq) |
| #define | PY_CALLBACK_SEQ_OF_2(r, macro, seq) macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq)) |
| #define | PY_FOR_EACH_SEQ_OF_3(macro, seq) BOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_3, macro, seq) |
| #define | PY_CALLBACK_SEQ_OF_3(r, macro, seq) macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq), PY_SEQ_ELEM_2(seq)) |
| #define | PY_SEQ_ELEM_0(seq) BOOST_PP_SEQ_HEAD(seq) |
| #define | PY_SEQ_ELEM_1(seq) BOOST_PP_SEQ_HEAD(BOOST_PP_SEQ_TAIL(seq)) |
| #define | PY_SEQ_ELEM_2(seq) BOOST_PP_SEQ_HEAD(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_TAIL(seq))) |
| #define | PY_MAKE_PARM_LIST(parm_types) BOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_PARM, _, parm_types) |
| #define | PY_MAKE_PARM(r, unused_data, i, elem) BOOST_PP_COMMA_IF(i) elem BOOST_PP_CAT(arg, i) |
| #define | PY_MAKE_ARG_LIST(parm_types) BOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_ARG, _, parm_types) |
| #define | PY_MAKE_ARG(r, unused_data, i, unused_elem) BOOST_PP_COMMA_IF(i) BOOST_PP_CAT(arg, i) |
| #define | PY_PyCompilerFlags PyCompilerFlags |
| #define | PY_PyThreadState PyThreadState |
| #define | PY_PyMethodDef PyMethodDef |
| #define | PY_PyGILState_STATE PyGILState_STATE |
| #define | PY_Py_ssize_t Py_ssize_t |
| #define | PY_PyObject_HEAD_EXTRA PyObject_HEAD_EXTRA |
| #define | PY_PyObject PyObject |
| #define | PY_PyVarObject PyVarObject |
| #define | PY_PyTypeObject PyTypeObject |
| #define | PY_PyCodeObject PyCodeObject |
| #define | PY_PyFrameObject PyFrameObject |
| #define | PY_PyListObject PyListObject |
| #define | PY_PyTupleObject PyTupleObject |
| #define | PY_DECLARE_FUNCTION(function_name, return_type, parm_types) |
| #define | PY_DECLARE_WRAPPED_CONSTANT(constant_name, type) |
| #define | PY_Py_InitModule Py_InitModule |
| #define | PY_PyArg_ParseTuple PyArg_ParseTuple |
| #define | PY_Py_BuildValue Py_BuildValue |
| #define | PY_PyObject_CallMethod PyObject_CallMethod |
| #define | PY_Py_single_input() Py_single_input |
| #define | PY_Py_file_input() Py_file_input |
| #define | PY_Py_eval_input() Py_eval_input |
| #define | PY_Py_MARSHAL_VERSION() Py_MARSHAL_VERSION |
| #define | PY_METH_VARARGS() METH_VARARGS |
| #define | PY_Py_EQ() Py_EQ |
| #define | PY_Py_INCREF Py_INCREF |
| #define | PY_Py_DECREF Py_DECREF |
| #define | PY_Py_XDECREF Py_XDECREF |
| #define | PY_Py_False() Py_False |
| #define | PY_Py_True() Py_True |
| #define | PY_Py_None() Py_None |
| #define | PY_Py_RETURN_NONE Py_RETURN_NONE |
| #define | PY_PyMODINIT_FUNC PyMODINIT_FUNC |
| #define | PY_PyRun_SimpleString PyRun_SimpleString |
| #define | PY_Py_CompileString Py_CompileString |
| #define | PY_PyRun_InteractiveLoop PyRun_InteractiveLoop |
| #define | PY_PyList_SET_ITEM PyList_SET_ITEM |
| #define | PY_PyTuple_SET_ITEM PyTuple_SET_ITEM |
| #define | PY_PyObject_TypeCheck PyObject_TypeCheck |
| #define | PY_PyExceptionInstance_Check PyExceptionInstance_Check |
| #define | PY_PyCObject_Check PyCObject_Check |
| #define | PY_PyLong_Check PyLong_Check |
| #define | PY_PyFloat_Check PyFloat_Check |
| #define | PY_PyTuple_Check PyTuple_Check |
| #define | PY_PyList_Check PyList_Check |
| #define | PY_PyDict_Check PyDict_Check |
| #define | PY_PyFunction_Check PyFunction_Check |
| #define | PY__Py_TrueStruct() _PyTrueStruct |
| #define | PY__Py_ZeroStruct() _PyZeroStruct |
| #define | PY_PyInt_AsLong PyInt_AsLong |
| #define | PY_PyInt_FromLong PyInt_FromLong |
| #define | PY_PyInt_Check PyInt_Check |
| #define | PY_PyString_AsString PyString_AsString |
| #define | PY_PyString_AsStringAndSize PyString_AsStringAndSize |
| #define | PY_PyString_FromString PyString_FromString |
| #define | PY_PyString_FromStringAndSize PyString_FromStringAndSize |
| #define | PY_PyString_Check PyString_Check |
| #define | PY_PYFRAME_BACK(op) ((op)->f_back) |
| #define | PY_PYFRAME_CODE(op) ((op)->f_code) |
Typedefs | |
| typedef char *(* | PY_PyOS_ReadlineFunctionPointerType )(FILE *, FILE *, char *) |
| #define COMPILE_TIME_DEPENDENCY_ON_PYTHON |
Definition at line 55 of file PY_CPythonAPI.h.
| #define PY__Py_TrueStruct | ( | ) | _PyTrueStruct |
Definition at line 681 of file PY_CPythonAPI.h.
| #define PY__Py_ZeroStruct | ( | ) | _PyZeroStruct |
Definition at line 682 of file PY_CPythonAPI.h.
| #define PY_CALLBACK_SEQ_OF_2 | ( | r, | |||
| macro, | |||||
| seq | ) | macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq)) |
Definition at line 223 of file PY_CPythonAPI.h.
| #define PY_CALLBACK_SEQ_OF_3 | ( | r, | |||
| macro, | |||||
| seq | ) | macro(PY_SEQ_ELEM_0(seq), PY_SEQ_ELEM_1(seq), PY_SEQ_ELEM_2(seq)) |
Definition at line 231 of file PY_CPythonAPI.h.
| #define PY_DECLARE_FUNCTION | ( | function_name, | |||
| return_type, | |||||
| parm_types | ) |
Value:
static inline return_type BOOST_PP_CAT(PY_, function_name)( \ PY_MAKE_PARM_LIST(parm_types)) \ { return function_name(PY_MAKE_ARG_LIST(parm_types)); }
Definition at line 613 of file PY_CPythonAPI.h.
| #define PY_DECLARE_WRAPPED_CONSTANT | ( | constant_name, | |||
| type | ) |
Value:
static inline type &BOOST_PP_CAT(PY_, constant_name)() \ { return constant_name; }
Definition at line 618 of file PY_CPythonAPI.h.
| #define PY_FOR_EACH_SEQ_OF_2 | ( | macro, | |||
| seq | ) | BOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_2, macro, seq) |
Definition at line 218 of file PY_CPythonAPI.h.
| #define PY_FOR_EACH_SEQ_OF_3 | ( | macro, | |||
| seq | ) | BOOST_PP_SEQ_FOR_EACH(PY_CALLBACK_SEQ_OF_3, macro, seq) |
Definition at line 229 of file PY_CPythonAPI.h.
| #define PY_MAKE_ARG | ( | r, | |||
| unused_data, | |||||
| i, | |||||
| unused_elem | ) | BOOST_PP_COMMA_IF(i) BOOST_PP_CAT(arg, i) |
Definition at line 267 of file PY_CPythonAPI.h.
| #define PY_MAKE_ARG_LIST | ( | parm_types | ) | BOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_ARG, _, parm_types) |
Definition at line 264 of file PY_CPythonAPI.h.
| #define PY_MAKE_PARM | ( | r, | |||
| unused_data, | |||||
| i, | |||||
| elem | ) | BOOST_PP_COMMA_IF(i) elem BOOST_PP_CAT(arg, i) |
Definition at line 256 of file PY_CPythonAPI.h.
| #define PY_MAKE_PARM_LIST | ( | parm_types | ) | BOOST_PP_SEQ_FOR_EACH_I(PY_MAKE_PARM, _, parm_types) |
Definition at line 249 of file PY_CPythonAPI.h.
| #define PY_METH_VARARGS | ( | ) | METH_VARARGS |
| #define PY_Py_BuildValue Py_BuildValue |
| #define PY_Py_CompileString Py_CompileString |
Definition at line 656 of file PY_CPythonAPI.h.
| #define PY_Py_DECREF Py_DECREF |
Definition at line 645 of file PY_CPythonAPI.h.
| #define PY_Py_EQ | ( | ) | Py_EQ |
Definition at line 641 of file PY_CPythonAPI.h.
| #define PY_Py_eval_input | ( | ) | Py_eval_input |
Definition at line 638 of file PY_CPythonAPI.h.
| #define PY_Py_False | ( | ) | Py_False |
Definition at line 648 of file PY_CPythonAPI.h.
| #define PY_Py_file_input | ( | ) | Py_file_input |
Definition at line 637 of file PY_CPythonAPI.h.
| #define PY_Py_INCREF Py_INCREF |
Definition at line 644 of file PY_CPythonAPI.h.
| #define PY_Py_InitModule Py_InitModule |
| #define PY_Py_MARSHAL_VERSION | ( | ) | Py_MARSHAL_VERSION |
Definition at line 639 of file PY_CPythonAPI.h.
| #define PY_Py_None | ( | ) | Py_None |
| #define PY_Py_RETURN_NONE Py_RETURN_NONE |
Definition at line 652 of file PY_CPythonAPI.h.
| #define PY_Py_single_input | ( | ) | Py_single_input |
Definition at line 636 of file PY_CPythonAPI.h.
| #define PY_Py_ssize_t Py_ssize_t |
Definition at line 598 of file PY_CPythonAPI.h.
| #define PY_Py_True | ( | ) | Py_True |
Definition at line 649 of file PY_CPythonAPI.h.
| #define PY_Py_XDECREF Py_XDECREF |
Definition at line 646 of file PY_CPythonAPI.h.
| #define PY_PyArg_ParseTuple PyArg_ParseTuple |
| #define PY_PyCObject_Check PyCObject_Check |
Definition at line 664 of file PY_CPythonAPI.h.
| #define PY_PyCodeObject PyCodeObject |
Definition at line 603 of file PY_CPythonAPI.h.
| #define PY_PyCompilerFlags PyCompilerFlags |
Definition at line 594 of file PY_CPythonAPI.h.
| #define PY_PyDict_Check PyDict_Check |
Definition at line 669 of file PY_CPythonAPI.h.
| #define PY_PyExceptionInstance_Check PyExceptionInstance_Check |
Definition at line 663 of file PY_CPythonAPI.h.
| #define PY_PyFloat_Check PyFloat_Check |
Definition at line 666 of file PY_CPythonAPI.h.
| #define PY_PYFRAME_BACK | ( | op | ) | ((op)->f_back) |
Definition at line 710 of file PY_CPythonAPI.h.
| #define PY_PYFRAME_CODE | ( | op | ) | ((op)->f_code) |
Definition at line 711 of file PY_CPythonAPI.h.
| #define PY_PyFrameObject PyFrameObject |
Definition at line 604 of file PY_CPythonAPI.h.
| #define PY_PyFunction_Check PyFunction_Check |
Definition at line 670 of file PY_CPythonAPI.h.
| #define PY_PyGILState_STATE PyGILState_STATE |
Definition at line 597 of file PY_CPythonAPI.h.
| #define PY_PyInt_AsLong PyInt_AsLong |
Definition at line 686 of file PY_CPythonAPI.h.
| #define PY_PyInt_Check PyInt_Check |
Definition at line 688 of file PY_CPythonAPI.h.
| #define PY_PyInt_FromLong PyInt_FromLong |
Definition at line 687 of file PY_CPythonAPI.h.
| #define PY_PyList_Check PyList_Check |
Definition at line 668 of file PY_CPythonAPI.h.
| #define PY_PyList_SET_ITEM PyList_SET_ITEM |
Definition at line 659 of file PY_CPythonAPI.h.
| #define PY_PyListObject PyListObject |
Definition at line 605 of file PY_CPythonAPI.h.
| #define PY_PyLong_Check PyLong_Check |
Definition at line 665 of file PY_CPythonAPI.h.
| #define PY_PyMethodDef PyMethodDef |
| #define PY_PyMODINIT_FUNC PyMODINIT_FUNC |
Definition at line 653 of file PY_CPythonAPI.h.
| #define PY_PyObject PyObject |
| #define PY_PyObject_CallMethod PyObject_CallMethod |
Definition at line 633 of file PY_CPythonAPI.h.
| #define PY_PyObject_HEAD_EXTRA PyObject_HEAD_EXTRA |
Definition at line 599 of file PY_CPythonAPI.h.
| #define PY_PyObject_TypeCheck PyObject_TypeCheck |
Definition at line 662 of file PY_CPythonAPI.h.
| #define PY_PyRun_InteractiveLoop PyRun_InteractiveLoop |
Definition at line 657 of file PY_CPythonAPI.h.
| #define PY_PyRun_SimpleString PyRun_SimpleString |
Definition at line 655 of file PY_CPythonAPI.h.
| #define PY_PyString_AsString PyString_AsString |
Definition at line 690 of file PY_CPythonAPI.h.
| #define PY_PyString_AsStringAndSize PyString_AsStringAndSize |
Definition at line 691 of file PY_CPythonAPI.h.
| #define PY_PyString_Check PyString_Check |
Definition at line 694 of file PY_CPythonAPI.h.
| #define PY_PyString_FromString PyString_FromString |
Definition at line 692 of file PY_CPythonAPI.h.
| #define PY_PyString_FromStringAndSize PyString_FromStringAndSize |
Definition at line 693 of file PY_CPythonAPI.h.
| #define PY_PyThreadState PyThreadState |
Definition at line 595 of file PY_CPythonAPI.h.
| #define PY_PyTuple_Check PyTuple_Check |
Definition at line 667 of file PY_CPythonAPI.h.
| #define PY_PyTuple_SET_ITEM PyTuple_SET_ITEM |
Definition at line 660 of file PY_CPythonAPI.h.
| #define PY_PyTupleObject PyTupleObject |
Definition at line 606 of file PY_CPythonAPI.h.
| #define PY_PyTypeObject PyTypeObject |
Definition at line 602 of file PY_CPythonAPI.h.
| #define PY_PyVarObject PyVarObject |
Definition at line 601 of file PY_CPythonAPI.h.
| #define PY_SEQ_ELEM_0 | ( | seq | ) | BOOST_PP_SEQ_HEAD(seq) |
Definition at line 237 of file PY_CPythonAPI.h.
| #define PY_SEQ_ELEM_1 | ( | seq | ) | BOOST_PP_SEQ_HEAD(BOOST_PP_SEQ_TAIL(seq)) |
Definition at line 239 of file PY_CPythonAPI.h.
| #define PY_SEQ_ELEM_2 | ( | seq | ) | BOOST_PP_SEQ_HEAD(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_TAIL(seq))) |
Definition at line 241 of file PY_CPythonAPI.h.
| #define PY_WRAPPED_CONSTANTS |
Value:
((_Py_NoneStruct)(PY_PyObject)) \ ((_PyOS_ReadlineTState)(PY_PyThreadState *)) \ ((_PyThreadState_Current)(PY_PyThreadState *)) \ ((PyOS_ReadlineFunctionPointer)(PY_PyOS_ReadlineFunctionPointerType)) \ ((PyExc_RuntimeError)(PY_PyObject *)) \ ((PyExc_IndexError)(PY_PyObject *)) \ ((PyExc_AttributeError)(PY_PyObject *)) \ ((PyExc_TypeError)(PY_PyObject *)) \ ((PyExc_KeyboardInterrupt)(PY_PyObject *)) \ ((PyExc_SystemExit)(PY_PyObject *)) \ ((PyExc_BaseException)(PY_PyObject *)) \ ((PyLong_Type)(PY_PyTypeObject)) \ ((PyFloat_Type)(PY_PyTypeObject)) \ ((PyUnicode_Type)(PY_PyTypeObject)) \ ((PyTuple_Type)(PY_PyTypeObject)) \ ((PyList_Type)(PY_PyTypeObject)) \ ((PyDict_Type)(PY_PyTypeObject)) \ ((PyFunction_Type)(PY_PyTypeObject))
Definition at line 177 of file PY_CPythonAPI.h.
| #define PY_WRAPPED_FUNCTIONS |
Definition at line 89 of file PY_CPythonAPI.h.
| typedef char*(* PY_PyOS_ReadlineFunctionPointerType)(FILE *, FILE *, char *) |
Definition at line 176 of file PY_CPythonAPI.h.
1.5.9