Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52e2cc8

Browse files
author
Victor Stinner
committed
backout 7876cd49300d: Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum
1 parent 2fa2281 commit 52e2cc8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Include/unicodeobject.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,12 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type;
445445
#define PyUnicode_IS_COMPACT_ASCII(op) \
446446
(((PyASCIIObject*)op)->state.ascii && PyUnicode_IS_COMPACT(op))
447447

448+
enum PyUnicode_Kind {
448449
/* String contains only wstr byte characters. This is only possible
449450
when the string was created with a legacy API and _PyUnicode_Ready()
450451
has not been called yet. */
451-
#define PyUnicode_WCHAR_KIND 0
452-
453-
/* Return values of the PyUnicode_KIND() macro */
454-
enum PyUnicode_Kind {
452+
PyUnicode_WCHAR_KIND = 0,
453+
/* Return values of the PyUnicode_KIND() macro: */
455454
PyUnicode_1BYTE_KIND = 1,
456455
PyUnicode_2BYTE_KIND = 2,
457456
PyUnicode_4BYTE_KIND = 4

0 commit comments

Comments
 (0)