#include "PyInterp_Interp.h"#include <pythread.h>#include <cStringIO.h>#include <structmember.h>#include <string>#include <vector>#include <map>#include <iostream>
Defines | |
| #define | TOP_HISTORY_PY "--- top of history ---" |
| #define | BEGIN_HISTORY_PY "--- begin of history ---" |
| #define | PyStdOut_Check(v) ((v)->ob_type == &PyStdOut_Type) |
Functions | |
| static void | PyStdOut_dealloc (PyStdOut *self) |
| static PyObject * | PyStdOut_write (PyStdOut *self, PyObject *args) |
| static PyObject * | PyStdOut_flush (PyStdOut *self) |
| static PyStdOut * | newPyStdOut (bool iscerr) |
| static int | compile_command (const char *command, PyObject *context) |
| Compile Python command and evaluate it in the python dictionary context if possible. | |
Variables | |
| std::map< long, PyThreadState * > | currentThreadMap |
| static PyMethodDef | PyStdOut_methods [] |
| static PyMemberDef | PyStdOut_memberlist [] |
| static PyTypeObject | PyStdOut_Type |
| #define TOP_HISTORY_PY "--- top of history ---" |
| #define BEGIN_HISTORY_PY "--- begin of history ---" |
| #define PyStdOut_Check | ( | v | ) | ((v)->ob_type == &PyStdOut_Type) |
| static void PyStdOut_dealloc | ( | PyStdOut * | self | ) | [static] |
| static PyObject* PyStdOut_write | ( | PyStdOut * | self, |
| PyObject * | args | ||
| ) | [static] |
References test_table.c, and test_table.l.
| static PyObject* PyStdOut_flush | ( | PyStdOut * | self | ) | [static] |
| static PyStdOut* newPyStdOut | ( | bool | iscerr | ) | [static] |
| static int compile_command | ( | const char * | command, |
| PyObject * | context | ||
| ) | [static] |
| command | Python command string |
| context | Python context (dictionary) |
| std::map<long,PyThreadState*> currentThreadMap |
PyMethodDef PyStdOut_methods[] [static] |
{
{"write", (PyCFunction)PyStdOut_write, METH_VARARGS, PyDoc_STR("write(string) -> None")},
{"flush", (PyCFunction)PyStdOut_flush, METH_NOARGS, PyDoc_STR("flush() -> None")},
{NULL, NULL}
}
PyMemberDef PyStdOut_memberlist[] [static] |
{
{(char*)"softspace", T_INT, offsetof(PyStdOut, softspace), 0,
(char*)"flag indicating that a space needs to be printed; used by print"},
{NULL}
}
PyTypeObject PyStdOut_Type [static] |