[Python-3000-checkins] r67378 - python/branches/py3k/Python/ast.c

thomas.heller python-3000-checkins at python.org
Tue Nov 25 13:35:58 CET 2008


Author: thomas.heller
Date: Tue Nov 25 13:35:58 2008
New Revision: 67378

Log:
Make ast.c compile on Windows again.

Modified:
   python/branches/py3k/Python/ast.c

Modified: python/branches/py3k/Python/ast.c
==============================================================================
--- python/branches/py3k/Python/ast.c	(original)
+++ python/branches/py3k/Python/ast.c	Tue Nov 25 13:35:58 2008
@@ -51,9 +51,10 @@
 new_identifier(const char* n, PyArena *arena)
 {
     PyObject* id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
+    Py_UNICODE *u;
     if (!id)
         return NULL;
-    Py_UNICODE *u = PyUnicode_AS_UNICODE(id);
+    u = PyUnicode_AS_UNICODE(id);
     /* Check whether there are non-ASCII characters in the
        identifier; if so, normalize to NFKC. */
     for (; *u; u++) {


More information about the Python-3000-checkins mailing list