summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-26 23:07:43 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-26 23:07:43 +0000
commit3b78463ec7af5107bf92e99d97eb1d9c68def436 (patch)
tree581c3e02d3c48da63b27af1df7e21910cf7b5b43 /Python/pythonrun.c
parente15bd05a2e502fa7ceacb16b5c0dd708f5e32479 (diff)
downloadcpython-3b78463ec7af5107bf92e99d97eb1d9c68def436.tar.gz
C89 compliance: Microsoft compilers want variable declarations at the top
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 39d7327dd8..6cc9f6df5d 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1417,8 +1417,7 @@ PyParser_ASTFromString(const char *s, const char *filename, int start,
{
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 @@ PyParser_ASTFromFile(FILE *fp, const char *filename, int start, char *ps1,
{
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) {