Changeset 26 for trunk/Compiler/Produce
- Timestamp:
- Dec 8, 2010, 10:00:30 AM (14 years ago)
- Location:
- trunk/Compiler/Produce
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Produce/UProducer.pas
r17 r26 7 7 8 8 uses 9 USourceCode, Classes, SysUtils, StrUtils ;9 USourceCode, Classes, SysUtils, StrUtils, SpecializedObjectList; 10 10 11 11 type … … 27 27 28 28 // TListProducer = TGObjectList<Integer, TProducer> 29 {$DEFINE TGObjectListIndex := Integer} 30 {$DEFINE TGObjectListItem := TProducer} 31 {$DEFINE TGObjectListList := TObjectListProducer} 32 {$DEFINE TGObjectList := TListProducer} 33 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProducer} 34 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProducer} 35 {$DEFINE INTERFACE} 36 {$I 'GenericObjectList.inc'} 29 TListProducer = class(TListObject); 37 30 38 31 implementation 39 40 {$DEFINE IMPLEMENTATION_USES}41 {$I 'GenericObjectList.inc'}42 43 // TListProducer = TGObjectList<Integer, TProducer>44 {$DEFINE TGObjectListIndex := Integer}45 {$DEFINE TGObjectListItem := TProducer}46 {$DEFINE TGObjectListList := TObjectListProducer}47 {$DEFINE TGObjectList := TListProducer}48 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProducer}49 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProducer}50 {$DEFINE IMPLEMENTATION}51 {$I 'GenericObjectList.inc'}52 32 53 33 { TProducer } -
trunk/Compiler/Produce/UProducerPascal.pas
r21 r26 137 137 with TTypeRecord(AType).CommonBlock do 138 138 for I := 0 to Variables.Count - 1 do begin 139 Emit( Variables[I].Name + ': ');140 GenerateType( Variables[I].ValueType);139 Emit(TVariable(Variables[I]).Name + ': '); 140 GenerateType(TVariable(Variables[I]).ValueType); 141 141 EmitLn(';'); 142 142 end; … … 259 259 Inc(Indetation); 260 260 for I := 0 to Constants.Count - 1 do 261 GenerateConstant( Constants[I]);261 GenerateConstant(TConstant(Constants[I])); 262 262 Dec(Indetation); 263 263 Emit('');
Note:
See TracChangeset
for help on using the changeset viewer.