mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
C89 compliance
This commit is contained in:
parent
2d6acd2ac2
commit
aa14dc3b4e
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ static int
|
||||||
future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename)
|
future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename)
|
||||||
{
|
{
|
||||||
int i, done = 0, prev_line = 0;
|
int i, done = 0, prev_line = 0;
|
||||||
|
stmt_ty first;
|
||||||
|
|
||||||
if (!(mod->kind == Module_kind || mod->kind == Interactive_kind))
|
if (!(mod->kind == Module_kind || mod->kind == Interactive_kind))
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -75,7 +76,7 @@ future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
stmt_ty first = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i);
|
first = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i);
|
||||||
if (first->kind == Expr_kind && first->v.Expr.value->kind == Str_kind)
|
if (first->kind == Expr_kind && first->v.Expr.value->kind == Str_kind)
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue