Changeset 75 for trunk/Compiler/Target.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Target.pas
r74 r75 1 unit UTarget; 2 3 {$mode Delphi}{$H+} 1 unit Target; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, UProducer, UExecutor, SpecializedList;6 Classes, SysUtils, Producer, Executor, Generics.Collections; 9 7 10 8 type … … 17 15 Producer: TProducer; 18 16 Executor: TExecutor; 19 Compiler: TObject; // TCompiler17 Compiler: TObject; // TCompiler 20 18 constructor Create; virtual; 21 19 destructor Destroy; override; … … 24 22 TTargetClass = class of TTarget; 25 23 26 { T ListTarget}24 { TTargets } 27 25 28 T ListTarget = class(TListObject)26 TTargets = class(TObjectList<TTarget>) 29 27 function SearchBySysName(Name: string): TTarget; 30 28 procedure LoadToStrings(Strings: TStrings); … … 43 41 destructor TTarget.Destroy; 44 42 begin 45 Producer.Free;46 Executor.Free;47 inherited Destroy;43 FreeAndNil(Producer); 44 FreeAndNil(Executor); 45 inherited; 48 46 end; 49 47 50 { T ListTarget}48 { TTargets } 51 49 52 function T ListTarget.SearchBySysName(Name: string): TTarget;50 function TTargets.SearchBySysName(Name: string): TTarget; 53 51 var 54 52 I: Integer; … … 60 58 end; 61 59 62 procedure T ListTarget.LoadToStrings(Strings: TStrings);60 procedure TTargets.LoadToStrings(Strings: TStrings); 63 61 var 64 62 I: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.