#include <stdio.h>#include <Python.h>Go to the source code of this file.
Enumerations | |
| enum | PPStringModes { PP_EXPRESSION, PP_STATEMENT } |
Functions | |
| PyObject * | PP_Compile_Codestr (PPStringModes mode, const char *codestr) |
| int | PP_Convert_Result (PyObject *presult, const char *resFormat, void *resTarget) |
| PyObject * | PP_Debug_Bytecode (PyObject *codeobject, PyObject *moddict) |
| PyObject * | PP_Debug_Codestr (PPStringModes mode, const char *codestring, PyObject *moddict) |
| PyObject * | PP_Debug_Function (PyObject *func, PyObject *args) |
| void | PP_Fetch_Error_Text () |
| int | PP_Get_Global (const char *modname, const char *varname, const char *resfmt, void *cresult) |
| int | PP_Get_Member (PyObject *pobject, const char *attrname, const char *resfmt, void *cresult) |
| const char * | PP_Init (const char *modname) |
| PyObject * | PP_Load_Attribute (const char *modname, const char *attrname) |
| PyObject * | PP_Load_Module (const char *modname) |
| int | PP_Make_Dummy_Module (const char *modname) |
| int | PP_Run_Bytecode (PyObject *codeobj, const char *modname, const char *resfmt, void *restarget) |
| int | PP_Run_Codestr (PPStringModes mode, const char *code, const char *modname, const char *resfmt, void *cresult) |
| int | PP_Run_Command_Line (const char *prompt) |
| int | PP_Run_Function (const char *modname, const char *funcname, const char *resfmt, void *cresult, const char *argfmt,...) |
| int | PP_Run_Known_Callable (PyObject *object, const char *resfmt, void *restarget, const char *argfmt,...) |
| int | PP_Run_Method (PyObject *pobject, const char *method, const char *resfmt, void *cresult, const char *argfmt,...) |
| int | PP_Set_Global (const char *modname, const char *varname, const char *valfmt,...) |
| int | PP_Set_Member (PyObject *pobject, const char *attrname, const char *valfmt,...) |
Variables | |
| int | PP_DEBUG |
| char | PP_last_error_info [] |
| char | PP_last_error_trace [] |
| char | PP_last_error_type [] |
| PyObject * | PP_last_traceback |
| int | PP_RELOAD |
| enum PPStringModes |
| PyObject* PP_Compile_Codestr | ( | PPStringModes | mode, | |
| const char * | codestr | |||
| ) |
Definition at line 515 of file PyTools.c.
References PP_EXPRESSION, PP_STATEMENT, and Sketcher::start.
| int PP_Convert_Result | ( | PyObject * | presult, | |
| const char * | resFormat, | |||
| void * | resTarget | |||
| ) |
Definition at line 299 of file PyTools.c.
Referenced by PP_Get_Global(), PP_Get_Member(), PP_Run_Bytecode(), PP_Run_Codestr(), PP_Run_Function(), PP_Run_Known_Callable(), PP_Run_Method(), and Base::InterpreterSingleton::runMethod().
Definition at line 605 of file PyTools.c.
References fixPdbRetval(), and PP_Run_Function().
Referenced by PP_Run_Bytecode().
| PyObject* PP_Debug_Codestr | ( | PPStringModes | mode, | |
| const char * | codestring, | |||
| PyObject * | moddict | |||
| ) |
Definition at line 589 of file PyTools.c.
References fixPdbRetval(), PP_EXPRESSION, and PP_Run_Function().
Referenced by PP_Run_Codestr().
Definition at line 138 of file PyTools.c.
References PP_Run_Function().
Referenced by PP_Run_Function(), PP_Run_Known_Callable(), and PP_Run_Method().
| void PP_Fetch_Error_Text | ( | ) |
Definition at line 215 of file PyTools.c.
References boost::numeric::bindings::umfpack::free(), MAX, PP_last_error_info, PP_last_error_trace, PP_last_error_type, PP_last_traceback, PP_Run_Function(), and PP_Run_Method().
Referenced by Base::PyException::PyException().
| int PP_Get_Global | ( | const char * | modname, | |
| const char * | varname, | |||
| const char * | resfmt, | |||
| void * | cresult | |||
| ) |
Definition at line 331 of file PyTools.c.
References PP_Convert_Result(), and PP_Load_Attribute().
| int PP_Get_Member | ( | PyObject * | pobject, | |
| const char * | attrname, | |||
| const char * | resfmt, | |||
| void * | cresult | |||
| ) |
Definition at line 70 of file PyTools.c.
References PP_Convert_Result().
| const char* PP_Init | ( | const char * | modname | ) |
Definition at line 375 of file PyTools.c.
Referenced by PP_Load_Attribute(), and PP_Load_Module().
| PyObject* PP_Load_Attribute | ( | const char * | modname, | |
| const char * | attrname | |||
| ) |
Definition at line 446 of file PyTools.c.
References PP_Init(), and PP_Load_Module().
Referenced by PP_Get_Global(), and PP_Run_Function().
| PyObject* PP_Load_Module | ( | const char * | modname | ) |
Definition at line 407 of file PyTools.c.
References PP_Init(), and PP_RELOAD.
Referenced by Base::InterpreterSingleton::loadModule(), PP_Load_Attribute(), PP_Run_Bytecode(), PP_Run_Codestr(), PP_Set_Global(), Base::InterpreterSingleton::runInteractiveString(), and Base::InterpreterSingleton::runString().
| int PP_Run_Bytecode | ( | PyObject * | codeobj, | |
| const char * | modname, | |||
| const char * | resfmt, | |||
| void * | restarget | |||
| ) |
Definition at line 533 of file PyTools.c.
References PP_Convert_Result(), PP_DEBUG, PP_Debug_Bytecode(), and PP_Load_Module().
| int PP_Run_Codestr | ( | PPStringModes | mode, | |
| const char * | code, | |||
| const char * | modname, | |||
| const char * | resfmt, | |||
| void * | cresult | |||
| ) |
Definition at line 484 of file PyTools.c.
References PP_Convert_Result(), PP_DEBUG, PP_Debug_Codestr(), PP_EXPRESSION, PP_Load_Module(), PP_STATEMENT, and result.
| int PP_Run_Command_Line | ( | const char * | prompt | ) |
Definition at line 459 of file PyTools.c.
Referenced by Base::InterpreterSingleton::runCommandLine().
| int PP_Run_Function | ( | const char * | modname, | |
| const char * | funcname, | |||
| const char * | resfmt, | |||
| void * | cresult, | |||
| const char * | argfmt, | |||
| ... | ||||
| ) |
Definition at line 109 of file PyTools.c.
References PP_Convert_Result(), PP_DEBUG, PP_Debug_Function(), and PP_Load_Attribute().
Referenced by PP_Debug_Bytecode(), PP_Debug_Codestr(), PP_Debug_Function(), and PP_Fetch_Error_Text().
| int PP_Run_Known_Callable | ( | PyObject * | object, | |
| const char * | resfmt, | |||
| void * | restarget, | |||
| const char * | argfmt, | |||
| ... | ||||
| ) |
Definition at line 164 of file PyTools.c.
References PP_Convert_Result(), PP_DEBUG, and PP_Debug_Function().
| int PP_Run_Method | ( | PyObject * | pobject, | |
| const char * | method, | |||
| const char * | resfmt, | |||
| void * | cresult, | |||
| const char * | argfmt, | |||
| ... | ||||
| ) |
Definition at line 33 of file PyTools.c.
References PP_Convert_Result(), PP_DEBUG, and PP_Debug_Function().
Referenced by PP_Fetch_Error_Text(), Base::InterpreterSingleton::runMethodObject(), and Base::InterpreterSingleton::runMethodVoid().
| int PP_Set_Global | ( | const char * | modname, | |
| const char * | varname, | |||
| const char * | valfmt, | |||
| ... | ||||
| ) |
Definition at line 340 of file PyTools.c.
References PP_Load_Module(), and result.
| int PP_Set_Member | ( | PyObject * | pobject, | |
| const char * | attrname, | |||
| const char * | valfmt, | |||
| ... | ||||
| ) |
| int PP_DEBUG |
Definition at line 372 of file PyTools.c.
Referenced by PP_Run_Bytecode(), PP_Run_Codestr(), PP_Run_Function(), PP_Run_Known_Callable(), and PP_Run_Method().
| char PP_last_error_info[] |
Definition at line 210 of file PyTools.c.
Referenced by PP_Fetch_Error_Text(), and Base::PyException::PyException().
| char PP_last_error_trace[] |
Definition at line 211 of file PyTools.c.
Referenced by PP_Fetch_Error_Text(), and Base::PyException::PyException().
| char PP_last_error_type[] |
Definition at line 209 of file PyTools.c.
Referenced by PP_Fetch_Error_Text(), and Base::PyException::PyException().
Definition at line 212 of file PyTools.c.
Referenced by PP_Fetch_Error_Text().
| int PP_RELOAD |
Definition at line 371 of file PyTools.c.
Referenced by PP_Load_Module().
1.6.1