From: Victor Stinner Date: Mon, 19 Dec 2011 21:14:45 +0000 (+0100) Subject: backout 7876cd49300d: Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum X-Git-Tag: v3.3.0a1~554 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52e2cc8604fef89bf3dff8eed37af68df7e813ea;p=thirdparty%2FPython%2Fcpython.git backout 7876cd49300d: Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum --- diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 60bfcbe5ca9c..c5480f1b46fe 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -445,13 +445,12 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type; #define PyUnicode_IS_COMPACT_ASCII(op) \ (((PyASCIIObject*)op)->state.ascii && PyUnicode_IS_COMPACT(op)) +enum PyUnicode_Kind { /* String contains only wstr byte characters. This is only possible when the string was created with a legacy API and _PyUnicode_Ready() has not been called yet. */ -#define PyUnicode_WCHAR_KIND 0 - -/* Return values of the PyUnicode_KIND() macro */ -enum PyUnicode_Kind { + PyUnicode_WCHAR_KIND = 0, +/* Return values of the PyUnicode_KIND() macro: */ PyUnicode_1BYTE_KIND = 1, PyUnicode_2BYTE_KIND = 2, PyUnicode_4BYTE_KIND = 4