ANSI-C-ify the placement of local var declarations.

This commit is contained in:
Armin Rigo 2005-10-21 12:57:31 +00:00
parent b2308bb9be
commit 3144130217
3 changed files with 14 additions and 9 deletions

View file

@ -2329,8 +2329,9 @@ compiler_import_as(struct compiler *c, identifier name, identifier asname)
src = dot + 1;
while (dot) {
/* NB src is only defined when dot != NULL */
PyObject *attr;
dot = strchr(src, '.');
PyObject *attr = PyString_FromStringAndSize(src,
attr = PyString_FromStringAndSize(src,
dot ? dot - src : strlen(src));
ADDOP_O(c, LOAD_ATTR, attr, names);
src = dot + 1;