mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #23501: Argumen Clinic now generates code into separate files by default.
This commit is contained in:
parent
0759f84d62
commit
1009bf18b3
54 changed files with 9262 additions and 8731 deletions
32
Modules/clinic/_codecsmodule.c.h
Normal file
32
Modules/clinic/_codecsmodule.c.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*[clinic input]
|
||||
preserve
|
||||
[clinic start generated code]*/
|
||||
|
||||
PyDoc_STRVAR(_codecs__forget_codec__doc__,
|
||||
"_forget_codec($module, encoding, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Purge the named codec from the internal codec lookup cache");
|
||||
|
||||
#define _CODECS__FORGET_CODEC_METHODDEF \
|
||||
{"_forget_codec", (PyCFunction)_codecs__forget_codec, METH_VARARGS, _codecs__forget_codec__doc__},
|
||||
|
||||
static PyObject *
|
||||
_codecs__forget_codec_impl(PyModuleDef *module, const char *encoding);
|
||||
|
||||
static PyObject *
|
||||
_codecs__forget_codec(PyModuleDef *module, PyObject *args)
|
||||
{
|
||||
PyObject *return_value = NULL;
|
||||
const char *encoding;
|
||||
|
||||
if (!PyArg_ParseTuple(args,
|
||||
"s:_forget_codec",
|
||||
&encoding))
|
||||
goto exit;
|
||||
return_value = _codecs__forget_codec_impl(module, encoding);
|
||||
|
||||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=cdea83e21d76a900 input=a9049054013a1b77]*/
|
Loading…
Add table
Add a link
Reference in a new issue