]> granicus.if.org Git - python/commitdiff
Issue #14387: Do not include accu.h from Python.h.
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 22 Mar 2012 13:38:16 +0000 (14:38 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 22 Mar 2012 13:38:16 +0000 (14:38 +0100)
Include/Python.h
Misc/NEWS
Objects/accu.c
Objects/listobject.c
Objects/tupleobject.c

index 5972ffa5923241cf668ebd50ddf20e3c2279ed61..d6e47c246307632f7c8fdeb7ac90519c7a61d7a4 100644 (file)
 #include "warnings.h"
 #include "weakrefobject.h"
 #include "structseq.h"
-#include "accu.h"
 
 #include "codecs.h"
 #include "pyerrors.h"
index 1c1bf1646677a631da5b8d3bb77640dded41d653..c14e999c94bb7ccb09e1c1697a424e30f5d8cd30 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -93,6 +93,8 @@ Extension Modules
 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.
 
index 88e8f08f59993b142fee16b58ed6ab6409b705d1..5bd2ee41fef7b666e731f5413316a0e2ee4ba295 100644 (file)
@@ -1,6 +1,7 @@
 /* Accumulator struct implementation */
 
 #include "Python.h"
+#include "accu.h"
 
 static PyObject *
 join_list_unicode(PyObject *lst)
index 00de597e5686221b25563cbf51d05be87a9bb22f..b9ef0d0287f42b645d6df831226441d16880fab6 100644 (file)
@@ -1,6 +1,7 @@
 /* List object implementation */
 
 #include "Python.h"
+#include "accu.h"
 
 #ifdef STDC_HEADERS
 #include <stddef.h>
index f6dbc315d90a7e0b74a6d4cff177454a2c4d0bc7..e99eda06f18e46881cc294d718c76bca9a9e523b 100644 (file)
@@ -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