mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 21:11:23 +02:00
* fixed indentation of for-in code
git-svn-id: trunk@15450 -
This commit is contained in:
parent
df525d98a3
commit
e66dbe1317
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user