Changeset 77 for trunk/Compiler/Modules
- Timestamp:
- Jun 4, 2024, 9:53:17 PM (6 months ago)
- Location:
- trunk/Compiler/Modules
- Files:
-
- 12 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Modules/ASM8051/ProducerASM8051.pas
r75 r77 45 45 implementation 46 46 47 48 47 { TAssemblerLine } 49 48 … … 71 70 NewLine.Operand2 := Operand2; 72 71 end; 73 74 72 75 73 (* … … 113 111 destructor TProducerAsm8051.Destroy; 114 112 begin 115 AssemblyCode.Free;113 FreeAndNil(AssemblyCode); 116 114 inherited; 117 115 end; -
trunk/Compiler/Modules/GCC/ModuleGCC.pas
r75 r77 36 36 destructor TModuleGCC.Destroy; 37 37 begin 38 inherited Destroy;38 inherited; 39 39 end; 40 40 -
trunk/Compiler/Modules/GCC/ProducerGCC.pas
r75 r77 4 4 5 5 uses 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; 8 8 9 9 type … … 46 46 end; 47 47 48 48 49 implementation 49 50 … … 64 65 destructor TProducerGCCC.Destroy; 65 66 begin 66 TextSource.Free;67 FreeAndNil(TextSource); 67 68 inherited; 68 69 end; … … 153 154 end; 154 155 155 procedure TProducerGCCC.GenerateFunctions(Functions: TFunctions; Prefix: string156 );156 procedure TProducerGCCC.GenerateFunctions(Functions: TFunctions; 157 Prefix: string = ''); 157 158 var 158 159 I: Integer; -
trunk/Compiler/Modules/Java/ModuleJava.pas
r75 r77 4 4 5 5 uses 6 Classes, SysUtils, ModularSystem, SourceConvertor ;6 Classes, SysUtils, ModularSystem, SourceConvertor, TargetJava; 7 7 8 8 type … … 10 10 11 11 TModuleJava = class(TModule) 12 Target: TTargetJava; 12 13 constructor Create(AOwner: TComponent); override; 13 14 procedure DoInstall; override; … … 35 36 procedure TModuleJava.DoInstall; 36 37 begin 38 Target := TTargetJava.Create; 39 with TCompilerAPI(API) do begin 40 RegisterTarget(TTargetJava); 41 end; 37 42 inherited; 38 43 end; … … 40 45 procedure TModuleJava.DoUninstall; 41 46 begin 47 with TCompilerAPI(API) do begin 48 UnregisterTarget(TTargetJava); 49 end; 42 50 inherited; 43 51 end;
Note:
See TracChangeset
for help on using the changeset viewer.