Changeset 75 for trunk/Compiler/Target/Dynamic C/ProducerDynamicC.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Target/Dynamic C/ProducerDynamicC.pas
r74 r75 1 unit UProducerDynamicc; 2 3 {$MODE Delphi} 1 unit ProducerDynamicC; 4 2 5 3 interface … … 7 5 uses 8 6 SysUtils, Variants, Classes, Graphics, Controls, Forms, 9 Dialogs, StdCtrls, USourceCodePascal, UProducer, StrUtils;7 Dialogs, StdCtrls, SourceCodePascal, Producer, StrUtils; 10 8 11 9 type … … 17 15 function TranslateType(Name: string): string; 18 16 function TranslateOperator(Name: string): string; 19 procedure GenerateUses(UsedModules: TUsedModule List);17 procedure GenerateUses(UsedModules: TUsedModules); 20 18 procedure GenerateModule(Module: TSourceModule); 21 19 procedure GenerateCommonBlock(CommonBlock: TCommonBlock; 22 20 LabelPrefix: string); 23 21 procedure GenerateType(AType: TType); 24 procedure GenerateTypes(Types: TType List);22 procedure GenerateTypes(Types: TTypes); 25 23 procedure GenerateProgram(ProgramBlock: TProgram); 26 procedure GenerateFunctions(Functions: TFunction List;24 procedure GenerateFunctions(Functions: TFunctions; 27 25 Prefix: string = ''; HeaderOnly: Boolean = False); 28 26 procedure GenerateBeginEnd(BeginEnd: TBeginEnd); 29 procedure GenerateVariableList(VariableList: TVariable List);27 procedure GenerateVariableList(VariableList: TVariables); 30 28 procedure GenerateVariable(Variable: TVariable); 31 29 procedure GenerateCommand(Command: TCommand); … … 43 41 end; 44 42 43 45 44 implementation 46 45 … … 56 55 destructor TProducerDynamicC.Destroy; 57 56 begin 58 TextSource.Free;57 FreeAndNil(TextSource); 59 58 inherited; 60 59 end; … … 87 86 end; 88 87 89 procedure TProducerDynamicC.GenerateUses(UsedModules: TUsedModule List);88 procedure TProducerDynamicC.GenerateUses(UsedModules: TUsedModules); 90 89 var 91 90 I: Integer; … … 150 149 end; 151 150 152 procedure TProducerDynamicC.GenerateFunctions(Functions: TFunction List;151 procedure TProducerDynamicC.GenerateFunctions(Functions: TFunctions; 153 152 Prefix: string = ''; HeaderOnly: Boolean = False); 154 153 var … … 197 196 end; 198 197 199 procedure TProducerDynamicC.GenerateVariableList(VariableList: TVariable List);198 procedure TProducerDynamicC.GenerateVariableList(VariableList: TVariables); 200 199 var 201 200 I: Integer; … … 360 359 end; 361 360 362 procedure TProducerDynamicC.GenerateTypes(Types: TType List);361 procedure TProducerDynamicC.GenerateTypes(Types: TTypes); 363 362 var 364 363 I: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.