summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-12 21:32:34 (GMT)
committerGitHub <noreply@github.com>2020-02-12 21:32:34 (GMT)
commit45876a90e2663f12b90c2090ec3e48bd97841aae (patch)
treeece53599591dd1bdcbdf1fe0dfe507c77da4b664 /Include
parent6e619c48b8e804ece9521453fc8da0640a04d5b1 (diff)
downloadcpython-45876a90e2663f12b90c2090ec3e48bd97841aae.zip
cpython-45876a90e2663f12b90c2090ec3e48bd97841aae.tar.gz
cpython-45876a90e2663f12b90c2090ec3e48bd97841aae.tar.bz2
bpo-35081: Move bytes_methods.h to the internal C API (GH-18492)
Move the bytes_methods.h header file to the internal C API as pycore_bytes_methods.h: it only contains private symbols (prefixed by "_Py"), except of the PyDoc_STRVAR_shared() macro.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_bytes_methods.h (renamed from Include/bytes_methods.h)4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/bytes_methods.h b/Include/internal/pycore_bytes_methods.h
index 8434a50..11e8ab2 100644
--- a/Include/bytes_methods.h
+++ b/Include/internal/pycore_bytes_methods.h
@@ -2,6 +2,10 @@
#ifndef Py_BYTES_CTYPE_H
#define Py_BYTES_CTYPE_H
+#ifndef Py_BUILD_CORE
+# error "this header requires Py_BUILD_CORE define"
+#endif
+
/*
* The internal implementation behind PyBytes (bytes) and PyByteArray (bytearray)
* methods of the given names, they operate on ASCII byte strings.