Ignore:
Timestamp:
Jun 4, 2024, 12:22:49 AM (4 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/GCC/ProducerGCC.pas

    r74 r75  
    1 unit UProducerGCC;
    2 
    3 {$MODE Delphi}
     1unit ProducerGCC;
    42
    53interface
    64
    75uses
    8   SysUtils, Variants, Classes, Graphics, Controls, Forms,
    9   Dialogs, StdCtrls, USourceCodePascal, UProducer, StrUtils;
     6  SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,
     7  SourceCodePascal, Producer, StrUtils;
    108
    119type
     
    1917    procedure Emit(AText: string);
    2018    procedure EmitLn(AText: string = '');
    21     procedure GenerateUses(UsedModules: TUsedModuleList);
     19    procedure GenerateUses(UsedModules: TUsedModules);
    2220    procedure GenerateModule(Module: TSourceModule);
    2321    procedure GenerateCommonBlock(CommonBlock: TCommonBlock;
    2422      LabelPrefix: string);
    2523    procedure GenerateType(AType: TType);
    26     procedure GenerateTypes(Types: TTypeList);
     24    procedure GenerateTypes(Types: TTypes);
    2725    procedure GenerateProgram(ProgramBlock: TProgram);
    28     procedure GenerateFunctions(Functions: TFunctionList;
     26    procedure GenerateFunctions(Functions: TFunctions;
    2927      Prefix: string = '');
    3028    procedure GenerateBeginEnd(BeginEnd: TBeginEnd);
    31     procedure GenerateVariableList(VariableList: TVariableList);
     29    procedure GenerateVariableList(VariableList: TVariables);
    3230    procedure GenerateVariable(Variable: TVariable);
    3331    procedure GenerateCommand(Command: TCommand);
     
    4846  end;
    4947
     48
    5049implementation
    5150
     
    6665destructor TProducerGCCC.Destroy;
    6766begin
    68   TextSource.Free;
     67  FreeAndNil(TextSource);
    6968  inherited;
    7069end;
     
    113112end;
    114113
    115 procedure TProducerGCCC.GenerateUses(UsedModules: TUsedModuleList);
     114procedure TProducerGCCC.GenerateUses(UsedModules: TUsedModules);
    116115var
    117116  I: Integer;
     
    155154end;
    156155
    157 procedure TProducerGCCC.GenerateFunctions(Functions: TFunctionList;
     156procedure TProducerGCCC.GenerateFunctions(Functions: TFunctions;
    158157  Prefix: string = '');
    159158var
     
    202201end;
    203202
    204 procedure TProducerGCCC.GenerateVariableList(VariableList: TVariableList);
     203procedure TProducerGCCC.GenerateVariableList(VariableList: TVariables);
    205204var
    206205  I: Integer;
     
    361360end;
    362361
    363 procedure TProducerGCCC.GenerateTypes(Types: TTypeList);
     362procedure TProducerGCCC.GenerateTypes(Types: TTypes);
    364363var
    365364  I: Integer;
Note: See TracChangeset for help on using the changeset viewer.