summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/spwdmodule.c.h
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-04-03 20:09:02 (GMT)
committerLarry Hastings <larry@hastings.org>2015-04-03 20:09:02 (GMT)
commit0759f84d6260bad1234b802212e73fdc5873d261 (patch)
tree10a4aa8c54a9e95e0f7c19189af3827538f55b24 /Modules/clinic/spwdmodule.c.h
parent5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d (diff)
downloadcpython-0759f84d6260bad1234b802212e73fdc5873d261.zip
cpython-0759f84d6260bad1234b802212e73fdc5873d261.tar.gz
cpython-0759f84d6260bad1234b802212e73fdc5873d261.tar.bz2
Issue #23500: Argument Clinic is now smarter about generating the "#ifndef"
(empty) definition of the methoddef macro: it's only generated once, even if Argument Clinic processes the same symbol multiple times, and it's emitted at the end of all processing rather than immediately after the first use.
Diffstat (limited to 'Modules/clinic/spwdmodule.c.h')
-rw-r--r--Modules/clinic/spwdmodule.c.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/clinic/spwdmodule.c.h b/Modules/clinic/spwdmodule.c.h
index b091fc9..889419e 100644
--- a/Modules/clinic/spwdmodule.c.h
+++ b/Modules/clinic/spwdmodule.c.h
@@ -36,10 +36,6 @@ exit:
#endif /* defined(HAVE_GETSPNAM) */
-#ifndef SPWD_GETSPNAM_METHODDEF
- #define SPWD_GETSPNAM_METHODDEF
-#endif /* !defined(SPWD_GETSPNAM_METHODDEF) */
-
#if defined(HAVE_GETSPENT)
PyDoc_STRVAR(spwd_getspall__doc__,
@@ -64,7 +60,11 @@ spwd_getspall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
#endif /* defined(HAVE_GETSPENT) */
+#ifndef SPWD_GETSPNAM_METHODDEF
+ #define SPWD_GETSPNAM_METHODDEF
+#endif /* !defined(SPWD_GETSPNAM_METHODDEF) */
+
#ifndef SPWD_GETSPALL_METHODDEF
#define SPWD_GETSPALL_METHODDEF
#endif /* !defined(SPWD_GETSPALL_METHODDEF) */
-/*[clinic end generated code: output=41fec4a15b0cd2a0 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=ab16125c5e5f2b1b input=a9049054013a1b77]*/