Changeset 77 for trunk/Compiler/Modules


Ignore:
Timestamp:
Jun 4, 2024, 9:53:17 PM (6 months ago)
Author:
chronos
Message:
  • Modified: Compiler targets moved into modules.
Location:
trunk/Compiler/Modules
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Modules/ASM8051/ProducerASM8051.pas

    r75 r77  
    4545implementation
    4646
    47 
    4847{ TAssemblerLine }
    4948
     
    7170  NewLine.Operand2 := Operand2;
    7271end;
    73 
    7472
    7573(*
     
    113111destructor TProducerAsm8051.Destroy;
    114112begin
    115   AssemblyCode.Free;
     113  FreeAndNil(AssemblyCode);
    116114  inherited;
    117115end;
  • trunk/Compiler/Modules/GCC/ModuleGCC.pas

    r75 r77  
    3636destructor TModuleGCC.Destroy;
    3737begin
    38   inherited Destroy;
     38  inherited;
    3939end;
    4040
  • trunk/Compiler/Modules/GCC/ProducerGCC.pas

    r75 r77  
    44
    55uses
    6   SysUtils, Variants, Classes, Graphics, Controls, Forms,
    7   Dialogs, StdCtrls, SourceCodePascal, Producer, StrUtils;
     6  SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,
     7  SourceCodePascal, Producer, StrUtils;
    88
    99type
     
    4646  end;
    4747
     48
    4849implementation
    4950
     
    6465destructor TProducerGCCC.Destroy;
    6566begin
    66   TextSource.Free;
     67  FreeAndNil(TextSource);
    6768  inherited;
    6869end;
     
    153154end;
    154155
    155 procedure TProducerGCCC.GenerateFunctions(Functions: TFunctions; Prefix: string
    156   );
     156procedure TProducerGCCC.GenerateFunctions(Functions: TFunctions;
     157  Prefix: string = '');
    157158var
    158159  I: Integer;
  • trunk/Compiler/Modules/Java/ModuleJava.pas

    r75 r77  
    44
    55uses
    6   Classes, SysUtils, ModularSystem, SourceConvertor;
     6  Classes, SysUtils, ModularSystem, SourceConvertor, TargetJava;
    77
    88type
     
    1010
    1111  TModuleJava = class(TModule)
     12    Target: TTargetJava;
    1213    constructor Create(AOwner: TComponent); override;
    1314    procedure DoInstall; override;
     
    3536procedure TModuleJava.DoInstall;
    3637begin
     38  Target := TTargetJava.Create;
     39  with TCompilerAPI(API) do begin
     40    RegisterTarget(TTargetJava);
     41  end;
    3742  inherited;
    3843end;
     
    4045procedure TModuleJava.DoUninstall;
    4146begin
     47  with TCompilerAPI(API) do begin
     48    UnregisterTarget(TTargetJava);
     49  end;
    4250  inherited;
    4351end;
Note: See TracChangeset for help on using the changeset viewer.