summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
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/zlibmodule.c
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/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index cf086de..cb2aae1 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -1138,9 +1138,7 @@ static PyMethodDef comp_methods[] =
{
ZLIB_COMPRESS_COMPRESS_METHODDEF
ZLIB_COMPRESS_FLUSH_METHODDEF
-#ifdef HAVE_ZLIB_COPY
ZLIB_COMPRESS_COPY_METHODDEF
-#endif
{NULL, NULL}
};
@@ -1148,9 +1146,7 @@ static PyMethodDef Decomp_methods[] =
{
ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF
ZLIB_DECOMPRESS_FLUSH_METHODDEF
-#ifdef HAVE_ZLIB_COPY
ZLIB_DECOMPRESS_COPY_METHODDEF
-#endif
{NULL, NULL}
};