summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-15 01:24:57 (GMT)
committerGitHub <noreply@github.com>2020-04-15 01:24:57 (GMT)
commit361dcdcefc80f5729ed18ac0ef73327794fbf400 (patch)
tree9ec3e27545cbf1f5f082b612ecbeb94b759827f9 /Modules
parentd9ea5cae1d07e1ee8b03540a9367c26205e0e360 (diff)
downloadcpython-361dcdcefc80f5729ed18ac0ef73327794fbf400.zip
cpython-361dcdcefc80f5729ed18ac0ef73327794fbf400.tar.gz
cpython-361dcdcefc80f5729ed18ac0ef73327794fbf400.tar.bz2
bpo-40268: Remove unused osdefs.h includes (GH-19532)
When the include is needed, add required symbol in a comment.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tracemalloc.c1
-rw-r--r--Modules/getpath.c2
-rw-r--r--Modules/posixmodule.c6
-rw-r--r--Modules/syslogmodule.c2
4 files changed, 5 insertions, 6 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index 691de07..dbae107 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -4,7 +4,6 @@
#include "pycore_traceback.h"
#include "hashtable.h"
#include "frameobject.h"
-#include "osdefs.h"
#include "clinic/_tracemalloc.c.h"
/*[clinic input]
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 1dd8dd0..94e06b3 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -4,7 +4,7 @@
#include "pycore_fileutils.h"
#include "pycore_initconfig.h"
#include "pycore_pathconfig.h"
-#include "osdefs.h"
+#include "osdefs.h" // DELIM
#include <sys/types.h>
#include <string.h>
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index f5beb09..89f9757 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -312,11 +312,11 @@ extern char *ctermid_r(char *);
#ifndef IO_REPARSE_TAG_MOUNT_POINT
#define IO_REPARSE_TAG_MOUNT_POINT (0xA0000003L)
#endif
-#include "osdefs.h"
+#include "osdefs.h" // SEP
#include <malloc.h>
#include <windows.h>
-#include <shellapi.h> /* for ShellExecute() */
-#include <lmcons.h> /* for UNLEN */
+#include <shellapi.h> // ShellExecute()
+#include <lmcons.h> // UNLEN
#define HAVE_SYMLINK
#endif /* _MSC_VER */
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c
index 2451792..11718e2 100644
--- a/Modules/syslogmodule.c
+++ b/Modules/syslogmodule.c
@@ -50,7 +50,7 @@ Revision history:
/* syslog module */
#include "Python.h"
-#include "osdefs.h"
+#include "osdefs.h" // SEP
#include <syslog.h>