diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-07 00:26:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 00:26:58 (GMT) |
commit | 097f74a5a37e2a8a26d529cede456ede7011b66f (patch) | |
tree | 9fcb89d8fe4944fea4da359e94d3b8ce16f263aa /Objects/stringlib/asciilib.h | |
parent | 16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 (diff) | |
download | cpython-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/stringlib/asciilib.h')
-rw-r--r-- | Objects/stringlib/asciilib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/asciilib.h b/Objects/stringlib/asciilib.h index 7749e8f..eebe888 100644 --- a/Objects/stringlib/asciilib.h +++ b/Objects/stringlib/asciilib.h @@ -20,6 +20,7 @@ #define STRINGLIB_NEW(STR,LEN) _PyUnicode_FromASCII((const char*)(STR),(LEN)) #define STRINGLIB_CHECK PyUnicode_Check #define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact +#define STRINGLIB_MUTABLE 0 #define STRINGLIB_TOSTR PyObject_Str #define STRINGLIB_TOASCII PyObject_ASCII |