[Python-checkins] r86065 - python/branches/py3k/Modules/operator.c
antoine.pitrou
python-checkins at python.org
Sun Oct 31 22:03:01 CET 2010
Author: antoine.pitrou
Date: Sun Oct 31 22:03:01 2010
New Revision: 86065
Log:
No declarations in the middle of a block (fixes compile under Windows)
Modified:
python/branches/py3k/Modules/operator.c
Modified: python/branches/py3k/Modules/operator.c
==============================================================================
--- python/branches/py3k/Modules/operator.c (original)
+++ python/branches/py3k/Modules/operator.c Sun Oct 31 22:03:01 2010
@@ -428,15 +428,15 @@
} else { /* make it a tuple of non-dotted attrnames */
PyObject *attr_chain = PyTuple_New(dot_count + 1);
PyObject *attr_chain_item;
+ Py_ssize_t unibuff_from = 0;
+ Py_ssize_t unibuff_till = 0;
+ Py_ssize_t attr_chain_idx = 0;
if (attr_chain == NULL) {
Py_DECREF(attr);
return NULL;
}
- Py_ssize_t unibuff_from = 0;
- Py_ssize_t unibuff_till = 0;
- Py_ssize_t attr_chain_idx = 0;
for (; dot_count > 0; --dot_count) {
while (item_buffer[unibuff_till] != (Py_UNICODE)'.') {
++unibuff_till;
More information about the Python-checkins
mailing list