Changeset 68 for trunk/Compiler/Target/Delphi/UProducerPascal.pas
- Timestamp:
- Jul 30, 2012, 3:52:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Target/Delphi/UProducerPascal.pas
r65 r68 16 16 private 17 17 procedure GenerateUses(UsedModules: TUsedModuleList); 18 procedure GenerateModule(Module: T Module);19 procedure GenerateUnit(Module: T Module);20 procedure GenerateLibrary(Module: T Module);21 procedure GeneratePackage(Module: T Module);18 procedure GenerateModule(Module: TSourceModule); 19 procedure GenerateUnit(Module: TSourceModule); 20 procedure GenerateLibrary(Module: TSourceModule); 21 procedure GeneratePackage(Module: TSourceModule); 22 22 procedure GenerateType(AType: TType; AssignSymbol: Char = ':'); 23 23 procedure GenerateTypes(Types: TTypeList); … … 43 43 public 44 44 procedure AssignToStringList(Target: TStringList); override; 45 procedure Produce(Module: T Module); override;45 procedure Produce(Module: TSourceModule); override; 46 46 constructor Create; 47 47 destructor Destroy; override; … … 94 94 end; 95 95 96 procedure TProducerPascal.GenerateModule(Module: T Module);96 procedure TProducerPascal.GenerateModule(Module: TSourceModule); 97 97 begin 98 98 Module.TargetFile := Module.Name + '.pas'; … … 113 113 end; 114 114 115 procedure TProducerPascal.GenerateUnit(Module: T Module);115 procedure TProducerPascal.GenerateUnit(Module: TSourceModule); 116 116 begin 117 117 EmitLn('unit ' + TModuleUnit(Module).Name + ';'); … … 127 127 end; 128 128 129 procedure TProducerPascal.GenerateLibrary(Module: T Module);130 begin 131 132 end; 133 134 procedure TProducerPascal.GeneratePackage(Module: T Module);129 procedure TProducerPascal.GenerateLibrary(Module: TSourceModule); 130 begin 131 132 end; 133 134 procedure TProducerPascal.GeneratePackage(Module: TSourceModule); 135 135 begin 136 136 … … 196 196 end; 197 197 198 procedure TProducerPascal.Produce(Module: T Module);198 procedure TProducerPascal.Produce(Module: TSourceModule); 199 199 var 200 200 I: Integer; … … 206 206 with Module.ParentProgram do 207 207 for I := 0 to Modules.Count - 1 do 208 if T Module(Modules[I]).Name = 'System' then209 T Module(Modules[I]).Name := 'System2';208 if TSourceModule(Modules[I]).Name = 'System' then 209 TSourceModule(Modules[I]).Name := 'System2'; 210 210 211 211 GenerateModule(Module);
Note:
See TracChangeset
for help on using the changeset viewer.