2017-02-04 06:13:20 -04:00
|
|
|
/*[clinic input]
|
|
|
|
preserve
|
|
|
|
[clinic start generated code]*/
|
|
|
|
|
|
|
|
PyDoc_STRVAR(_symtable_symtable__doc__,
|
|
|
|
"symtable($module, str, filename, startstr, /)\n"
|
|
|
|
"--\n"
|
|
|
|
"\n"
|
|
|
|
"Return symbol and scope dictionaries used internally by compiler.");
|
|
|
|
|
|
|
|
#define _SYMTABLE_SYMTABLE_METHODDEF \
|
2018-11-27 05:27:36 -04:00
|
|
|
{"symtable", (PyCFunction)(void(*)(void))_symtable_symtable, METH_FASTCALL, _symtable_symtable__doc__},
|
2017-02-04 06:13:20 -04:00
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
_symtable_symtable_impl(PyObject *module, const char *str,
|
|
|
|
PyObject *filename, const char *startstr);
|
|
|
|
|
|
|
|
static PyObject *
|
2017-12-15 07:11:11 -04:00
|
|
|
_symtable_symtable(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
2017-02-04 06:13:20 -04:00
|
|
|
{
|
|
|
|
PyObject *return_value = NULL;
|
|
|
|
const char *str;
|
|
|
|
PyObject *filename;
|
|
|
|
const char *startstr;
|
|
|
|
|
2017-06-10 01:51:48 -03:00
|
|
|
if (!_PyArg_ParseStack(args, nargs, "sO&s:symtable",
|
|
|
|
&str, PyUnicode_FSDecoder, &filename, &startstr)) {
|
2017-02-04 06:13:20 -04:00
|
|
|
goto exit;
|
|
|
|
}
|
|
|
|
return_value = _symtable_symtable_impl(module, str, filename, startstr);
|
|
|
|
|
|
|
|
exit:
|
|
|
|
return return_value;
|
|
|
|
}
|
2018-11-27 05:27:36 -04:00
|
|
|
/*[clinic end generated code: output=52ece07dd0e7a113 input=a9049054013a1b77]*/
|