Skip to content

Commit 68cbffa

Browse files
author
amaury.forgeotdarc
committed
C89 compliance: Microsoft compilers want variable declarations at the top
git-svn-id: http://svn.python.org/projects/python/trunk@61958 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 2fe0902 commit 68cbffa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Python/pythonrun.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,7 @@ PyParser_ASTFromString(const char *s, const char *filename, int start,
14171417
{
14181418
mod_ty mod;
14191419
perrdetail err;
1420-
int iflags;
1421-
iflags = PARSER_FLAGS(flags);
1420+
int iflags = PARSER_FLAGS(flags);
14221421

14231422
node *n = PyParser_ParseStringFlagsFilenameEx(s, filename,
14241423
&_PyParser_Grammar, start, &err,
@@ -1444,9 +1443,8 @@ PyParser_ASTFromFile(FILE *fp, const char *filename, int start, char *ps1,
14441443
{
14451444
mod_ty mod;
14461445
perrdetail err;
1447-
int iflags;
1446+
int iflags = PARSER_FLAGS(flags);
14481447

1449-
iflags = PARSER_FLAGS(flags);
14501448
node *n = PyParser_ParseFileFlagsEx(fp, filename, &_PyParser_Grammar,
14511449
start, ps1, ps2, &err, &iflags);
14521450
if (n) {

0 commit comments

Comments
 (0)