thomas.heller
2008-11-25 12:35:58 UTC
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++) {
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++) {