mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
bpo-40268: Remove unused osdefs.h includes (GH-19532)
When the include is needed, add required symbol in a comment.
This commit is contained in:
parent
d9ea5cae1d
commit
361dcdcefc
13 changed files with 18 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_fileutils.h"
|
||||
#include "osdefs.h"
|
||||
#include "osdefs.h" // SEP
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "marshal.h"
|
||||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
#include "osdefs.h"
|
||||
#include "importdl.h"
|
||||
#include "pydtrace.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Path configuration like module_search_path (sys.path) */
|
||||
|
||||
#include "Python.h"
|
||||
#include "osdefs.h"
|
||||
#include "osdefs.h" // DELIM
|
||||
#include "pycore_initconfig.h"
|
||||
#include "pycore_fileutils.h"
|
||||
#include "pycore_pathconfig.h"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "symtable.h"
|
||||
#include "ast.h"
|
||||
#include "marshal.h"
|
||||
#include "osdefs.h"
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "symtable.h"
|
||||
#include "ast.h"
|
||||
#include "marshal.h"
|
||||
#include "osdefs.h"
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
|
|
|
@ -26,9 +26,9 @@ Data members:
|
|||
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_tupleobject.h"
|
||||
#include "pydtrace.h"
|
||||
|
||||
#include "osdefs.h"
|
||||
#include "pydtrace.h"
|
||||
#include "osdefs.h" // DELIM
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include "code.h"
|
||||
#include "frameobject.h"
|
||||
#include "structmember.h" // PyMemberDef
|
||||
#include "osdefs.h"
|
||||
#include "osdefs.h" // SEP
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue