summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorTal Einat <taleinat@gmail.com>2017-11-03 09:09:00 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-11-03 09:09:00 (GMT)
commit4f57409a2f7bdf8fb559cddc7c6533ca2c471c67 (patch)
treefe4ded27d3d8ade96a60a849ddce32c6facfbc6e /Modules/clinic
parent700d2e4755921d6c339ff20dacecde1aea64de34 (diff)
downloadcpython-4f57409a2f7bdf8fb559cddc7c6533ca2c471c67.zip
cpython-4f57409a2f7bdf8fb559cddc7c6533ca2c471c67.tar.gz
cpython-4f57409a2f7bdf8fb559cddc7c6533ca2c471c67.tar.bz2
bpo-31926: fix missing *_METHODDEF statements by argument clinic (#4230)
When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name.
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/zlibmodule.c.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/clinic/zlibmodule.c.h b/Modules/clinic/zlibmodule.c.h
index 3edf7db..33c7672 100644
--- a/Modules/clinic/zlibmodule.c.h
+++ b/Modules/clinic/zlibmodule.c.h
@@ -467,4 +467,8 @@ exit:
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
#define ZLIB_COMPRESS_COPY_METHODDEF
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
-/*[clinic end generated code: output=e0184313eb431e95 input=a9049054013a1b77]*/
+
+#ifndef ZLIB_DECOMPRESS_COPY_METHODDEF
+ #define ZLIB_DECOMPRESS_COPY_METHODDEF
+#endif /* !defined(ZLIB_DECOMPRESS_COPY_METHODDEF) */
+/*[clinic end generated code: output=6378d429f0819817 input=a9049054013a1b77]*/