Changeset 75 for trunk/Compiler/Target/GCC/ProducerGCC.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Target/GCC/ProducerGCC.pas
r74 r75 1 unit UProducerGCC; 2 3 {$MODE Delphi} 1 unit ProducerGCC; 4 2 5 3 interface 6 4 7 5 uses 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; 10 8 11 9 type … … 19 17 procedure Emit(AText: string); 20 18 procedure EmitLn(AText: string = ''); 21 procedure GenerateUses(UsedModules: TUsedModule List);19 procedure GenerateUses(UsedModules: TUsedModules); 22 20 procedure GenerateModule(Module: TSourceModule); 23 21 procedure GenerateCommonBlock(CommonBlock: TCommonBlock; 24 22 LabelPrefix: string); 25 23 procedure GenerateType(AType: TType); 26 procedure GenerateTypes(Types: TType List);24 procedure GenerateTypes(Types: TTypes); 27 25 procedure GenerateProgram(ProgramBlock: TProgram); 28 procedure GenerateFunctions(Functions: TFunction List;26 procedure GenerateFunctions(Functions: TFunctions; 29 27 Prefix: string = ''); 30 28 procedure GenerateBeginEnd(BeginEnd: TBeginEnd); 31 procedure GenerateVariableList(VariableList: TVariable List);29 procedure GenerateVariableList(VariableList: TVariables); 32 30 procedure GenerateVariable(Variable: TVariable); 33 31 procedure GenerateCommand(Command: TCommand); … … 48 46 end; 49 47 48 50 49 implementation 51 50 … … 66 65 destructor TProducerGCCC.Destroy; 67 66 begin 68 TextSource.Free;67 FreeAndNil(TextSource); 69 68 inherited; 70 69 end; … … 113 112 end; 114 113 115 procedure TProducerGCCC.GenerateUses(UsedModules: TUsedModule List);114 procedure TProducerGCCC.GenerateUses(UsedModules: TUsedModules); 116 115 var 117 116 I: Integer; … … 155 154 end; 156 155 157 procedure TProducerGCCC.GenerateFunctions(Functions: TFunction List;156 procedure TProducerGCCC.GenerateFunctions(Functions: TFunctions; 158 157 Prefix: string = ''); 159 158 var … … 202 201 end; 203 202 204 procedure TProducerGCCC.GenerateVariableList(VariableList: TVariable List);203 procedure TProducerGCCC.GenerateVariableList(VariableList: TVariables); 205 204 var 206 205 I: Integer; … … 361 360 end; 362 361 363 procedure TProducerGCCC.GenerateTypes(Types: TType List);362 procedure TProducerGCCC.GenerateTypes(Types: TTypes); 364 363 var 365 364 I: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.