Include structseq.h in Python.h, and remove now-redundant includes in… · pythoncapi/cpython@71c23d4 · GitHub
Skip to content

Commit 71c23d4

Browse files
committed
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
1 parent 53afa6d commit 71c23d4

14 files changed

Lines changed: 3 additions & 12 deletions

File tree

Include/Python.h

Lines changed: 1 addition & 0 deletions

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ Library
136136
C-API
137137
-----
138138

139+
- structseq.h is now included in Python.h.
140+
139141
- Loosen PyArg_ValidateKeywordArguments to allow dict subclasses.
140142

141143
Tests

Modules/_lsprof.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "Python.h"
22
#include "compile.h"
33
#include "frameobject.h"
4-
#include "structseq.h"
54
#include "rotatingtree.h"
65

76
#if !defined(HAVE_LONG_LONG)

Modules/_struct.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define PY_SSIZE_T_CLEAN
77

88
#include "Python.h"
9-
#include "structseq.h"
109
#include "structmember.h"
1110
#include <ctype.h>
1211

Modules/grpmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* UNIX group file access module */
33

44
#include "Python.h"
5-
#include "structseq.h"
65

76
#include <sys/types.h>
87
#include <grp.h>

Modules/posixmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define PY_SSIZE_T_CLEAN
2929

3030
#include "Python.h"
31-
#include "structseq.h"
3231

3332
#if defined(__VMS)
3433
# include <unixio.h>

Modules/pwdmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* UNIX password file access module */
33

44
#include "Python.h"
5-
#include "structseq.h"
65

76
#include <sys/types.h>
87
#include <pwd.h>

Modules/resource.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
#include "Python.h"
3-
#include "structseq.h"
43
#include <sys/resource.h>
54
#include <sys/time.h>
65
#include <string.h>

Modules/spwdmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/* For info also see http://www.unixpapa.com/incnote/passwd.html */
55

66
#include "Python.h"
7-
#include "structseq.h"
87

98
#include <sys/types.h>
109
#ifdef HAVE_SHADOW_H

Modules/timemodule.c

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)