diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/tools/python3/src/Python/clinic/sysmodule.c.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Python/clinic/sysmodule.c.h')
-rw-r--r-- | contrib/tools/python3/src/Python/clinic/sysmodule.c.h | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/contrib/tools/python3/src/Python/clinic/sysmodule.c.h b/contrib/tools/python3/src/Python/clinic/sysmodule.c.h index cc455f3026..4615ebaab5 100644 --- a/contrib/tools/python3/src/Python/clinic/sysmodule.c.h +++ b/contrib/tools/python3/src/Python/clinic/sysmodule.c.h @@ -1,7 +1,7 @@ -/*[clinic input] -preserve -[clinic start generated code]*/ - +/*[clinic input] +preserve +[clinic start generated code]*/ + PyDoc_STRVAR(sys_addaudithook__doc__, "addaudithook($module, /, hook)\n" "--\n" @@ -387,36 +387,36 @@ exit: return return_value; } -PyDoc_STRVAR(sys_set_coroutine_origin_tracking_depth__doc__, -"set_coroutine_origin_tracking_depth($module, /, depth)\n" -"--\n" -"\n" -"Enable or disable origin tracking for coroutine objects in this thread.\n" -"\n" +PyDoc_STRVAR(sys_set_coroutine_origin_tracking_depth__doc__, +"set_coroutine_origin_tracking_depth($module, /, depth)\n" +"--\n" +"\n" +"Enable or disable origin tracking for coroutine objects in this thread.\n" +"\n" "Coroutine objects will track \'depth\' frames of traceback information\n" "about where they came from, available in their cr_origin attribute.\n" "\n" "Set a depth of 0 to disable."); - -#define SYS_SET_COROUTINE_ORIGIN_TRACKING_DEPTH_METHODDEF \ + +#define SYS_SET_COROUTINE_ORIGIN_TRACKING_DEPTH_METHODDEF \ {"set_coroutine_origin_tracking_depth", (PyCFunction)(void(*)(void))sys_set_coroutine_origin_tracking_depth, METH_FASTCALL|METH_KEYWORDS, sys_set_coroutine_origin_tracking_depth__doc__}, - -static PyObject * -sys_set_coroutine_origin_tracking_depth_impl(PyObject *module, int depth); - -static PyObject * -sys_set_coroutine_origin_tracking_depth(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) -{ - PyObject *return_value = NULL; - static const char * const _keywords[] = {"depth", NULL}; + +static PyObject * +sys_set_coroutine_origin_tracking_depth_impl(PyObject *module, int depth); + +static PyObject * +sys_set_coroutine_origin_tracking_depth(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) +{ + PyObject *return_value = NULL; + static const char * const _keywords[] = {"depth", NULL}; static _PyArg_Parser _parser = {NULL, _keywords, "set_coroutine_origin_tracking_depth", 0}; PyObject *argsbuf[1]; - int depth; - + int depth; + args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf); if (!args) { - goto exit; - } + goto exit; + } if (PyFloat_Check(args[0])) { PyErr_SetString(PyExc_TypeError, "integer argument expected, got float" ); @@ -426,39 +426,39 @@ sys_set_coroutine_origin_tracking_depth(PyObject *module, PyObject *const *args, if (depth == -1 && PyErr_Occurred()) { goto exit; } - return_value = sys_set_coroutine_origin_tracking_depth_impl(module, depth); - -exit: - return return_value; -} - -PyDoc_STRVAR(sys_get_coroutine_origin_tracking_depth__doc__, -"get_coroutine_origin_tracking_depth($module, /)\n" -"--\n" -"\n" -"Check status of origin tracking for coroutine objects in this thread."); - -#define SYS_GET_COROUTINE_ORIGIN_TRACKING_DEPTH_METHODDEF \ - {"get_coroutine_origin_tracking_depth", (PyCFunction)sys_get_coroutine_origin_tracking_depth, METH_NOARGS, sys_get_coroutine_origin_tracking_depth__doc__}, - -static int -sys_get_coroutine_origin_tracking_depth_impl(PyObject *module); - -static PyObject * -sys_get_coroutine_origin_tracking_depth(PyObject *module, PyObject *Py_UNUSED(ignored)) -{ - PyObject *return_value = NULL; - int _return_value; - - _return_value = sys_get_coroutine_origin_tracking_depth_impl(module); - if ((_return_value == -1) && PyErr_Occurred()) { - goto exit; - } - return_value = PyLong_FromLong((long)_return_value); - -exit: - return return_value; -} + return_value = sys_set_coroutine_origin_tracking_depth_impl(module, depth); + +exit: + return return_value; +} + +PyDoc_STRVAR(sys_get_coroutine_origin_tracking_depth__doc__, +"get_coroutine_origin_tracking_depth($module, /)\n" +"--\n" +"\n" +"Check status of origin tracking for coroutine objects in this thread."); + +#define SYS_GET_COROUTINE_ORIGIN_TRACKING_DEPTH_METHODDEF \ + {"get_coroutine_origin_tracking_depth", (PyCFunction)sys_get_coroutine_origin_tracking_depth, METH_NOARGS, sys_get_coroutine_origin_tracking_depth__doc__}, + +static int +sys_get_coroutine_origin_tracking_depth_impl(PyObject *module); + +static PyObject * +sys_get_coroutine_origin_tracking_depth(PyObject *module, PyObject *Py_UNUSED(ignored)) +{ + PyObject *return_value = NULL; + int _return_value; + + _return_value = sys_get_coroutine_origin_tracking_depth_impl(module); + if ((_return_value == -1) && PyErr_Occurred()) { + goto exit; + } + return_value = PyLong_FromLong((long)_return_value); + +exit: + return return_value; +} PyDoc_STRVAR(sys_get_asyncgen_hooks__doc__, "get_asyncgen_hooks($module, /)\n" |