diff Python/pythonrun.c @ 46123:248676988c54 legacy-trunk

C89 compliance: Microsoft compilers want variable declarations at the top
author Amaury Forgeot d'Arc <amauryfa@gmail.com>
date Wed, 26 Mar 2008 23:07:43 +0000
parents d00ded8b2677
children 840064802952
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Mar 26 22:55:31 2008 +0000
+++ b/Python/pythonrun.c	Wed Mar 26 23:07:43 2008 +0000
@@ -1417,8 +1417,7 @@
 {
 	mod_ty mod;
 	perrdetail err;
-	int iflags;
-	iflags = PARSER_FLAGS(flags);
+	int iflags = PARSER_FLAGS(flags);
 
 	node *n = PyParser_ParseStringFlagsFilenameEx(s, filename,
 					&_PyParser_Grammar, start, &err,
@@ -1444,9 +1443,8 @@
 {
 	mod_ty mod;
 	perrdetail err;
-	int iflags;
+	int iflags = PARSER_FLAGS(flags);
 
-	iflags = PARSER_FLAGS(flags);
 	node *n = PyParser_ParseFileFlagsEx(fp, filename, &_PyParser_Grammar,
 				start, ps1, ps2, &err, &iflags);
 	if (n) {