diff Include/unicodeobject.h @ 74087:d2df3396fef0

backout 7876cd49300d: Move PyUnicode_WCHAR_KIND outside PyUnicode_Kind enum
author Victor Stinner <victor.stinner@haypocalc.com>
date Mon, 19 Dec 2011 22:14:45 +0100
parents 7876cd49300d
children 4bbc3ffa1207
line wrap: on
line diff
--- a/Include/unicodeobject.h	Mon Dec 19 19:12:01 2011 +0100
+++ b/Include/unicodeobject.h	Mon Dec 19 22:14:45 2011 +0100
@@ -445,13 +445,12 @@
 #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