static PyObject * gcc_python_get_global_namespace(PyObject *self, PyObject *args) { /* (global_namespace will be NULL outside the C++ frontend, giving a result of None) */ return gcc_python_make_wrapper_tree(global_namespace); }
static void gcc_python_callback_for_tree(void *gcc_data, void *user_data) { PyGILState_STATE gstate; tree t = (tree)gcc_data; gstate = PyGILState_Ensure(); gcc_python_finish_invoking_callback(gstate, 1, gcc_python_make_wrapper_tree(t), user_data); }
static PyObject * gcc_python_maybe_get_identifier(PyObject *self, PyObject *args) { const char *str; tree t; if (!PyArg_ParseTuple(args, "s:maybe_get_identifier", &str)) { return NULL; } t = maybe_get_identifier(str); return gcc_python_make_wrapper_tree(t); }