[Python-checkins] cpython (3.2): Issue #14387: Do not include accu.h from Python.h.
antoine.pitrou
python-checkins at python.org
Thu Mar 22 14:48:53 CET 2012
http://hg.python.org/cpython/rev/f34ac2e9d5cf
changeset: 75875:f34ac2e9d5cf
branch: 3.2
parent: 75870:1b467efb9b27
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Mar 22 14:38:16 2012 +0100
summary:
Issue #14387: Do not include accu.h from Python.h.
files:
Include/Python.h | 1 -
Misc/NEWS | 2 ++
Objects/accu.c | 1 +
Objects/listobject.c | 1 +
Objects/tupleobject.c | 1 +
5 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Include/Python.h b/Include/Python.h
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -100,7 +100,6 @@
#include "warnings.h"
#include "weakrefobject.h"
#include "structseq.h"
-#include "accu.h"
#include "codecs.h"
#include "pyerrors.h"
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -93,6 +93,8 @@
Build
-----
+- Issue #14387: Do not include accu.h from Python.h.
+
- Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
Based on patch from Hervé Coatanhay.
diff --git a/Objects/accu.c b/Objects/accu.c
--- a/Objects/accu.c
+++ b/Objects/accu.c
@@ -1,6 +1,7 @@
/* Accumulator struct implementation */
#include "Python.h"
+#include "accu.h"
static PyObject *
join_list_unicode(PyObject *lst)
diff --git a/Objects/listobject.c b/Objects/listobject.c
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -1,6 +1,7 @@
/* List object implementation */
#include "Python.h"
+#include "accu.h"
#ifdef STDC_HEADERS
#include <stddef.h>
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -2,6 +2,7 @@
/* Tuple object implementation */
#include "Python.h"
+#include "accu.h"
/* Speed optimization to avoid frequent malloc/free of small tuples */
#ifndef PyTuple_MAXSAVESIZE
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list