summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-10-13 09:39:41 (GMT)
committerLarry Hastings <larry@hastings.org>2014-10-13 09:39:41 (GMT)
commitdfbeb160de829d16d3668dec5bc902a31ad25835 (patch)
treec5389a8396acbab2ec6ac82350405d786aaa3444 /Modules/clinic
parent6f3bdc94848d8c99ad2b7eb79e90ddb6e9f602c6 (diff)
downloadcpython-dfbeb160de829d16d3668dec5bc902a31ad25835.zip
cpython-dfbeb160de829d16d3668dec5bc902a31ad25835.tar.gz
cpython-dfbeb160de829d16d3668dec5bc902a31ad25835.tar.bz2
Issue #22615: Argument Clinic now supports the "type" argument for the
int converter. This permits using the int converter with enums and typedefs.
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/arraymodule.c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/clinic/arraymodule.c.h b/Modules/clinic/arraymodule.c.h
index 51b9a54..57d7690 100644
--- a/Modules/clinic/arraymodule.c.h
+++ b/Modules/clinic/arraymodule.c.h
@@ -446,7 +446,7 @@ PyDoc_STRVAR(array__array_reconstructor__doc__,
{"_array_reconstructor", (PyCFunction)array__array_reconstructor, METH_VARARGS, array__array_reconstructor__doc__},
static PyObject *
-array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype, int typecode, int mformat_code, PyObject *items);
+array__array_reconstructor_impl(PyModuleDef *module, PyTypeObject *arraytype, int typecode, enum machine_format_code mformat_code, PyObject *items);
static PyObject *
array__array_reconstructor(PyModuleDef *module, PyObject *args)
@@ -454,7 +454,7 @@ array__array_reconstructor(PyModuleDef *module, PyObject *args)
PyObject *return_value = NULL;
PyTypeObject *arraytype;
int typecode;
- int mformat_code;
+ enum machine_format_code mformat_code;
PyObject *items;
if (!PyArg_ParseTuple(args,
@@ -502,4 +502,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__,
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
-/*[clinic end generated code: output=dff8eae01f0ab208 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e1deb61c6a3bc8c8 input=a9049054013a1b77]*/