Include structseq.h in Python.h, and remove now-redundant includes in individual sources.

This commit is contained in:
Georg Brandl 2010-11-30 09:30:54 +00:00
parent 53afa6d239
commit 71c23d4473
14 changed files with 3 additions and 12 deletions

View File

@ -98,6 +98,7 @@
#include "descrobject.h" #include "descrobject.h"
#include "warnings.h" #include "warnings.h"
#include "weakrefobject.h" #include "weakrefobject.h"
#include "structseq.h"
#include "codecs.h" #include "codecs.h"
#include "pyerrors.h" #include "pyerrors.h"

View File

@ -136,6 +136,8 @@ Library
C-API C-API
----- -----
- structseq.h is now included in Python.h.
- Loosen PyArg_ValidateKeywordArguments to allow dict subclasses. - Loosen PyArg_ValidateKeywordArguments to allow dict subclasses.
Tests Tests

View File

@ -1,7 +1,6 @@
#include "Python.h" #include "Python.h"
#include "compile.h" #include "compile.h"
#include "frameobject.h" #include "frameobject.h"
#include "structseq.h"
#include "rotatingtree.h" #include "rotatingtree.h"
#if !defined(HAVE_LONG_LONG) #if !defined(HAVE_LONG_LONG)

View File

@ -6,7 +6,6 @@
#define PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include "structmember.h" #include "structmember.h"
#include <ctype.h> #include <ctype.h>

View File

@ -2,7 +2,6 @@
/* UNIX group file access module */ /* UNIX group file access module */
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include <sys/types.h> #include <sys/types.h>
#include <grp.h> #include <grp.h>

View File

@ -28,7 +28,6 @@
#define PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
#include "structseq.h"
#if defined(__VMS) #if defined(__VMS)
# include <unixio.h> # include <unixio.h>

View File

@ -2,7 +2,6 @@
/* UNIX password file access module */ /* UNIX password file access module */
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include <sys/types.h> #include <sys/types.h>
#include <pwd.h> #include <pwd.h>

View File

@ -1,6 +1,5 @@
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/time.h> #include <sys/time.h>
#include <string.h> #include <string.h>

View File

@ -4,7 +4,6 @@
/* For info also see http://www.unixpapa.com/incnote/passwd.html */ /* For info also see http://www.unixpapa.com/incnote/passwd.html */
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SHADOW_H #ifdef HAVE_SHADOW_H

View File

@ -2,7 +2,6 @@
/* Time module */ /* Time module */
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include "_time.h" #include "_time.h"
#define TZNAME_ENCODING "utf-8" #define TZNAME_ENCODING "utf-8"

View File

@ -5,7 +5,6 @@
for any kind of float exception without losing portability. */ for any kind of float exception without losing portability. */
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include <ctype.h> #include <ctype.h>
#include <float.h> #include <float.h>

View File

@ -4,7 +4,6 @@
#include "Python.h" #include "Python.h"
#include "longintrepr.h" #include "longintrepr.h"
#include "structseq.h"
#include <float.h> #include <float.h>
#include <ctype.h> #include <ctype.h>

View File

@ -3,7 +3,6 @@
#include "Python.h" #include "Python.h"
#include "structmember.h" #include "structmember.h"
#include "structseq.h"
static char visible_length_key[] = "n_sequence_fields"; static char visible_length_key[] = "n_sequence_fields";
static char real_length_key[] = "n_fields"; static char real_length_key[] = "n_fields";

View File

@ -15,7 +15,6 @@ Data members:
*/ */
#include "Python.h" #include "Python.h"
#include "structseq.h"
#include "code.h" #include "code.h"
#include "frameobject.h" #include "frameobject.h"
#include "eval.h" #include "eval.h"