| 220 | } |
| 221 | |
| 222 | static PyObject* python_tcl_eval(PyObject *self, PyObject *args) { |
| 223 | Tcl_Interp *interp = static_interp; |
| 224 | const char *command; |
| 225 | if ( ! PyArg_ParseTuple(args, "s", &command) ) return 0; |
| 226 | if ( TCL_OK != Tcl_EvalEx(interp,command,-1,TCL_EVAL_DIRECT) ) { |
| 227 | PyErr_SetString(PyExc_RuntimeError, Tcl_GetStringResult(interp)); |
| 228 | return 0; |
| 229 | } |
| 230 | return tcl_python_convert(Tcl_GetObjResult(interp)); |
| 231 | } |
| 232 | |
| 233 | static PyObject* python_tcl_write(PyObject *self, PyObject *args) { |
| 234 | const char *string; |
nothing calls this directly
no test coverage detected