summaryrefslogtreecommitdiffstats
path: root/Objects/bytearrayobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-07 00:26:58 (GMT)
committerGitHub <noreply@github.com>2022-02-07 00:26:58 (GMT)
commit097f74a5a37e2a8a26d529cede456ede7011b66f (patch)
tree9fcb89d8fe4944fea4da359e94d3b8ce16f263aa /Objects/bytearrayobject.c
parent16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 (diff)
downloadcpython-097f74a5a37e2a8a26d529cede456ede7011b66f.zip
cpython-097f74a5a37e2a8a26d529cede456ede7011b66f.tar.gz
cpython-097f74a5a37e2a8a26d529cede456ede7011b66f.tar.bz2
bpo-46670: Define all macros for stringlib (GH-31176)
bytesobject.c, bytearrayobject.c and unicodeobject.c now define all macros used by stringlib, to avoid using undefined macros. Fix "gcc -Wundef" warnings.
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r--Objects/bytearrayobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index a600985..8fce83d 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -1074,6 +1074,7 @@ bytearray_dealloc(PyByteArrayObject *self)
/* -------------------------------------------------------------------- */
/* Methods */
+#define STRINGLIB_IS_UNICODE 0
#define FASTSEARCH fastsearch
#define STRINGLIB(F) stringlib_##F
#define STRINGLIB_CHAR char