diff options
author | Larry Hastings <larry@hastings.org> | 2015-04-03 20:09:02 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-04-03 20:09:02 (GMT) |
commit | 0759f84d6260bad1234b802212e73fdc5873d261 (patch) | |
tree | 10a4aa8c54a9e95e0f7c19189af3827538f55b24 /Modules/posixmodule.c | |
parent | 5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d (diff) | |
download | cpython-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/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ef69a45..e1aabfa 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -17130,10 +17130,6 @@ dump buffer #define OS_SYSTEM_METHODDEF #endif /* !defined(OS_SYSTEM_METHODDEF) */ -#ifndef OS_SYSTEM_METHODDEF - #define OS_SYSTEM_METHODDEF -#endif /* !defined(OS_SYSTEM_METHODDEF) */ - #ifndef OS_UNAME_METHODDEF #define OS_UNAME_METHODDEF #endif /* !defined(OS_UNAME_METHODDEF) */ @@ -17306,10 +17302,6 @@ dump buffer #define OS_WAITPID_METHODDEF #endif /* !defined(OS_WAITPID_METHODDEF) */ -#ifndef OS_WAITPID_METHODDEF - #define OS_WAITPID_METHODDEF -#endif /* !defined(OS_WAITPID_METHODDEF) */ - #ifndef OS_WAIT_METHODDEF #define OS_WAIT_METHODDEF #endif /* !defined(OS_WAIT_METHODDEF) */ @@ -17410,10 +17402,6 @@ dump buffer #define OS_PUTENV_METHODDEF #endif /* !defined(OS_PUTENV_METHODDEF) */ -#ifndef OS_PUTENV_METHODDEF - #define OS_PUTENV_METHODDEF -#endif /* !defined(OS_PUTENV_METHODDEF) */ - #ifndef OS_UNSETENV_METHODDEF #define OS_UNSETENV_METHODDEF #endif /* !defined(OS_UNSETENV_METHODDEF) */ @@ -17521,7 +17509,7 @@ dump buffer #ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF #define OS_SET_HANDLE_INHERITABLE_METHODDEF #endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */ -/*[clinic end generated code: output=52a6140b0b052ce6 input=524ce2e021e4eba6]*/ +/*[clinic end generated code: output=b788c2d6010113e8 input=524ce2e021e4eba6]*/ static PyMethodDef posix_methods[] = { |