summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-03-02 13:15:26 (GMT)
committerGitHub <noreply@github.com>2022-03-02 13:15:26 (GMT)
commitb6b711a1aa233001c1874af1d920e459b6bf962c (patch)
treedb9de75d0d1a794dace09ccba274a22f733bff63 /Objects/bytesobject.c
parent03642df1a1cfddcd740b62e78bddfa3ea6863da4 (diff)
downloadcpython-b6b711a1aa233001c1874af1d920e459b6bf962c.zip
cpython-b6b711a1aa233001c1874af1d920e459b6bf962c.tar.gz
cpython-b6b711a1aa233001c1874af1d920e459b6bf962c.tar.bz2
bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642)
Move _PyBytes_Find() and _PyBytes_ReverseFind() functions to the internal C API. bytesobject.c now includes pycore_bytesobject.h.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 4c67b8f..c6160aa 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -4,6 +4,7 @@
#include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check()
+#include "pycore_bytesobject.h" // _PyBytes_Find()
#include "pycore_bytes_methods.h" // _Py_bytes_startswith()
#include "pycore_call.h" // _PyObject_CallNoArgs()
#include "pycore_format.h" // F_LJUST