* fixed indentation of for-in code

git-svn-id: trunk@15450 -
This commit is contained in:
Jonas Maebe 2010-06-19 15:10:44 +00:00
parent df525d98a3
commit e66dbe1317

View File

@ -323,7 +323,7 @@ implementation
procedure check_range(hp:tnode);
begin
{$ifndef cpu64bitaddr}
{$ifndef cpu64bitaddr}
if hp.nodetype=ordconstn then
begin
if (tordconstnode(hp).value<int64(low(longint))) or
@ -334,7 +334,7 @@ implementation
tordconstnode(hp).value:=0;
end;
end;
{$endif not cpu64bitaddr}
{$endif not cpu64bitaddr}
end;
function for_loop_create(hloopvar: tnode): tnode;
@ -475,22 +475,24 @@ implementation
result:=cfornode.create(hloopvar,hfrom,hto,hblock,backward);
end;
function for_in_loop_create(hloopvar: tnode): tnode;
var
expr: tnode;
begin
expr := comp_expr(true);
expr:=comp_expr(true);
consume(_DO);
set_varstate(hloopvar,vs_written,[]);
set_varstate(hloopvar,vs_read,[vsf_must_be_valid]);
result := create_for_in_loop(hloopvar, statement, expr);
result:=create_for_in_loop(hloopvar,statement,expr);
expr.free;
end;
var
hloopvar: tnode;
begin