summaryrefslogtreecommitdiff
path: root/Modules/_heapqmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-22 17:39:32 +0200
committerGitHub <noreply@github.com>2020-06-22 17:39:32 +0200
commitc45dbe93b7094fe014442c198727ee38b25541c4 (patch)
tree9ee531ffa21bda6d8edfdcfdf046e75b98e597fa /Modules/_heapqmodule.c
parent384621c42f9102e31ba2c47feba144af09c989e5 (diff)
downloadcpython-git-c45dbe93b7094fe014442c198727ee38b25541c4.tar.gz
bpo-41078: Add pycore_list.h internal header file (GH-21057)
* Move _PyList_ITEMS() to pycore_list.h. * The C extension "_heapq" is now built with Py_BUILD_CORE_MODULE macro defined to access the internal C API.
Diffstat (limited to 'Modules/_heapqmodule.c')
-rw-r--r--Modules/_heapqmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c
index 193478d79b..20468c28f2 100644
--- a/Modules/_heapqmodule.c
+++ b/Modules/_heapqmodule.c
@@ -7,9 +7,11 @@ annotated by François Pinard, and converted to C by Raymond Hettinger.
*/
#include "Python.h"
+#include "pycore_list.h" // _PyList_ITEMS()
#include "clinic/_heapqmodule.c.h"
+
/*[clinic input]
module _heapq
[clinic start generated code]*/