diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-26 23:07:43 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-26 23:07:43 (GMT) |
commit | df70e05d2204aad60396c4f110d9783269708843 (patch) | |
tree | d50a2a4e3cf632a34a7093b257ec633499977b7d | |
parent | fa50bad9578cf32e6adcaf52c3a58c7b6cd81e30 (diff) | |
download | cpython-df70e05d2204aad60396c4f110d9783269708843.zip cpython-df70e05d2204aad60396c4f110d9783269708843.tar.gz cpython-df70e05d2204aad60396c4f110d9783269708843.tar.bz2 |
C89 compliance: Microsoft compilers want variable declarations at the top
-rw-r--r-- | Python/pythonrun.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 39d7327..6cc9f6d 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) { |