Ignore:
Timestamp:
Jun 29, 2023, 1:47:58 AM (17 months ago)
Author:
chronos
Message:
  • Fixed: Var function parameters processed correctly for both user defined and internal functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/xpascal/Parser.pas

    r234 r236  
    4444procedure TParser.InitSystemBlock(Block: TBlock);
    4545var
     46  I: Integer;
    4647  TypeBoolean: TType;
    4748  TypeString: TType;
     
    219220      Kind := pkVar;
    220221  end;
     222
     223  for I := 0 to Block.Functions.Count - 1 do
     224    Block.Functions[I].InitVariables;
     225  for I := 0 to Block.Procedures.Count - 1 do
     226    Block.Procedures[I].InitVariables;
    221227end;
    222228
Note: See TracChangeset for help on using the changeset viewer.