Ignore:
Timestamp:
Aug 9, 2010, 1:53:33 PM (14 years ago)
Author:
george
Message:

Added support of parameters for function call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/UPascalCompiler.pas

    r46 r48  
    8585          UsedType := nil;
    8686        end;
    87         with TFunction(Methods[Methods.Add(TFunction.Create)]) do begin
     87        with TFunction(Functions[Functions.Add(TFunction.Create)]) do begin
    8888          Name := 'Exit';
    8989          ResultType := TType(TModule(Modules[0]).Types[0]);
    9090        end;
    91         with TFunction(Methods[Methods.Add(TFunction.Create)]) do begin
     91        with TFunction(Functions[Functions.Add(TFunction.Create)]) do begin
    9292          Name := 'WriteLn';
    9393          ResultType := TType(TModule(Modules[0]).Types[0]);
     94          with TParameter(Parameters[Parameters.Add(TParameter.Create)]) do begin
     95            Name := 'Text';
     96            ValueType := TType(TModule(Modules[0]).Types[1]);
     97          end;
    9498        end;
    9599      end;
Note: See TracChangeset for help on using the changeset viewer.