summaryrefslogtreecommitdiffstats
path: root/Objects/clinic/unicodeobject.c.h
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2022-04-18 20:43:56 (GMT)
committerGitHub <noreply@github.com>2022-04-18 20:43:56 (GMT)
commit2f0fc521f48af0dcec86dfcc8d0bc91eebf974ee (patch)
treee82f31904d4f2ecfb6c61d202d2bab0643bdca1a /Objects/clinic/unicodeobject.c.h
parentdbd9d75fedfebb215fe3e2b60249ac642cc8abf2 (diff)
downloadcpython-2f0fc521f48af0dcec86dfcc8d0bc91eebf974ee.zip
cpython-2f0fc521f48af0dcec86dfcc8d0bc91eebf974ee.tar.gz
cpython-2f0fc521f48af0dcec86dfcc8d0bc91eebf974ee.tar.bz2
gh-91102: Use Argument Clinic for EncodingMap (#31725)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Objects/clinic/unicodeobject.c.h')
-rw-r--r--Objects/clinic/unicodeobject.c.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/Objects/clinic/unicodeobject.c.h b/Objects/clinic/unicodeobject.c.h
index 803b5f2..b989240 100644
--- a/Objects/clinic/unicodeobject.c.h
+++ b/Objects/clinic/unicodeobject.c.h
@@ -2,6 +2,24 @@
preserve
[clinic start generated code]*/
+PyDoc_STRVAR(EncodingMap_size__doc__,
+"size($self, /)\n"
+"--\n"
+"\n"
+"Return the size (in bytes) of this object.");
+
+#define ENCODINGMAP_SIZE_METHODDEF \
+ {"size", (PyCFunction)EncodingMap_size, METH_NOARGS, EncodingMap_size__doc__},
+
+static PyObject *
+EncodingMap_size_impl(struct encoding_map *self);
+
+static PyObject *
+EncodingMap_size(struct encoding_map *self, PyObject *Py_UNUSED(ignored))
+{
+ return EncodingMap_size_impl(self);
+}
+
PyDoc_STRVAR(unicode_title__doc__,
"title($self, /)\n"
"--\n"
@@ -1335,4 +1353,4 @@ skip_optional_pos:
exit:
return return_value;
}
-/*[clinic end generated code: output=c494bed46209961d input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e8566b060f558f72 input=a9049054013a1b77]*/