gh-102650: Remove duplicate include directives from multiple source files (#102651)

Remove duplicate include directives from multiple source files
This commit is contained in:
chgnrdv 2023-03-13 22:25:17 +03:00 committed by GitHub
parent 2d370da570
commit 85ba8a3e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 8 deletions

View File

@ -27,7 +27,6 @@
#include <err.h> #include <err.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <stdlib.h> #include <stdlib.h>
#include <Python.h>
#include <mach-o/dyld.h> #include <mach-o/dyld.h>

View File

@ -32,12 +32,11 @@
/* EVP is the preferred interface to hashing in OpenSSL */ /* EVP is the preferred interface to hashing in OpenSSL */
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include <openssl/crypto.h> #include <openssl/crypto.h> // FIPS_mode()
/* We use the object interface to discover what hashes OpenSSL supports. */ /* We use the object interface to discover what hashes OpenSSL supports. */
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/crypto.h> // FIPS_mode()
#ifndef OPENSSL_THREADS #ifndef OPENSSL_THREADS
# error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL" # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"

View File

@ -13,7 +13,6 @@
#include "pycore_bytesobject.h" // _PyBytes_Repeat #include "pycore_bytesobject.h" // _PyBytes_Repeat
#include "structmember.h" // PyMemberDef #include "structmember.h" // PyMemberDef
#include <stddef.h> // offsetof() #include <stddef.h> // offsetof()
#include <stddef.h>
/*[clinic input] /*[clinic input]
module array module array

View File

@ -13,7 +13,7 @@
#include "pycore_moduleobject.h" // _PyModule_GetState() #include "pycore_moduleobject.h" // _PyModule_GetState()
#include "pycore_pyerrors.h" // _PyErr_SetString() #include "pycore_pyerrors.h" // _PyErr_SetString()
#include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_signal.h" #include "pycore_signal.h" // Py_NSIG
#ifndef MS_WINDOWS #ifndef MS_WINDOWS
# include "posixmodule.h" # include "posixmodule.h"
@ -28,8 +28,6 @@
# endif # endif
#endif #endif
#include "pycore_signal.h" // Py_NSIG
#ifdef HAVE_SIGNAL_H #ifdef HAVE_SIGNAL_H
# include <signal.h> # include <signal.h>
#endif #endif

View File

@ -9,7 +9,6 @@
#include "pycore_initconfig.h" // _PyConfig_InitCompatConfig() #include "pycore_initconfig.h" // _PyConfig_InitCompatConfig()
#include "pycore_runtime.h" // _PyRuntime #include "pycore_runtime.h" // _PyRuntime
#include "pycore_import.h" // _PyImport_FrozenBootstrap #include "pycore_import.h" // _PyImport_FrozenBootstrap
#include <Python.h>
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> // putenv() #include <stdlib.h> // putenv()