Ignore:
Timestamp:
Jun 4, 2024, 12:22:49 AM (5 months ago)
Author:
chronos
Message:
  • Modified: Removed U prefix from unit names.
  • Modified: Updated Common package.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Target/Dynamic C/ProducerDynamicC.pas

    r74 r75  
    1 unit UProducerDynamicc;
    2 
    3 {$MODE Delphi}
     1unit ProducerDynamicC;
    42
    53interface
     
    75uses
    86  SysUtils, Variants, Classes, Graphics, Controls, Forms,
    9   Dialogs, StdCtrls, USourceCodePascal, UProducer, StrUtils;
     7  Dialogs, StdCtrls, SourceCodePascal, Producer, StrUtils;
    108
    119type
     
    1715    function TranslateType(Name: string): string;
    1816    function TranslateOperator(Name: string): string;
    19     procedure GenerateUses(UsedModules: TUsedModuleList);
     17    procedure GenerateUses(UsedModules: TUsedModules);
    2018    procedure GenerateModule(Module: TSourceModule);
    2119    procedure GenerateCommonBlock(CommonBlock: TCommonBlock;
    2220      LabelPrefix: string);
    2321    procedure GenerateType(AType: TType);
    24     procedure GenerateTypes(Types: TTypeList);
     22    procedure GenerateTypes(Types: TTypes);
    2523    procedure GenerateProgram(ProgramBlock: TProgram);
    26     procedure GenerateFunctions(Functions: TFunctionList;
     24    procedure GenerateFunctions(Functions: TFunctions;
    2725      Prefix: string = ''; HeaderOnly: Boolean = False);
    2826    procedure GenerateBeginEnd(BeginEnd: TBeginEnd);
    29     procedure GenerateVariableList(VariableList: TVariableList);
     27    procedure GenerateVariableList(VariableList: TVariables);
    3028    procedure GenerateVariable(Variable: TVariable);
    3129    procedure GenerateCommand(Command: TCommand);
     
    4341  end;
    4442
     43
    4544implementation
    4645
     
    5655destructor TProducerDynamicC.Destroy;
    5756begin
    58   TextSource.Free;
     57  FreeAndNil(TextSource);
    5958  inherited;
    6059end;
     
    8786end;
    8887
    89 procedure TProducerDynamicC.GenerateUses(UsedModules: TUsedModuleList);
     88procedure TProducerDynamicC.GenerateUses(UsedModules: TUsedModules);
    9089var
    9190  I: Integer;
     
    150149end;
    151150
    152 procedure TProducerDynamicC.GenerateFunctions(Functions: TFunctionList;
     151procedure TProducerDynamicC.GenerateFunctions(Functions: TFunctions;
    153152  Prefix: string = ''; HeaderOnly: Boolean = False);
    154153var
     
    197196end;
    198197
    199 procedure TProducerDynamicC.GenerateVariableList(VariableList: TVariableList);
     198procedure TProducerDynamicC.GenerateVariableList(VariableList: TVariables);
    200199var
    201200  I: Integer;
     
    360359end;
    361360
    362 procedure TProducerDynamicC.GenerateTypes(Types: TTypeList);
     361procedure TProducerDynamicC.GenerateTypes(Types: TTypes);
    363362var
    364363  I: Integer;
Note: See TracChangeset for help on using the changeset viewer.