Changeset 37 for trunk/Compiler/Produce/UProducerDynamicC.pas
- Timestamp:
- Feb 14, 2012, 7:33:51 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Produce/UProducerDynamicC.pas
r17 r37 50 50 begin 51 51 Name := 'Dynamic C'; 52 {$IFDEF Windows} 53 CompilerPath := 'c:\Program Files\Dynamic C Rabbit 9.62\Dcrab_9.62.exe'; 54 {$ENDIF} 52 55 end; 53 56 … … 142 145 I: Integer; 143 146 begin 144 Inde tation := 0;147 Indentation := 0; 145 148 with ProgramBlock do 146 149 for I := 0 to Modules.Count - 1 do … … 180 183 begin 181 184 EmitLn('{'); 182 Inc(Inde tation);185 Inc(Indentation); 183 186 184 187 // Variables … … 191 194 GenerateCommand(TCommand(BeginEnd.Commands[I])); 192 195 193 Dec(Inde tation);196 Dec(Indentation); 194 197 EmitLn('}'); 195 198 end; … … 320 323 EmitLn('struct'); 321 324 EmitLn('{'); 322 Inc(Inde tation);325 Inc(Indentation); 323 326 GenerateVariableList(TTypeRecord(AType).CommonBlock.Variables); 324 Dec(Inde tation);327 Dec(Indentation); 325 328 EmitLn('} ' + TranslateType(AType.Name) + ';'); 326 329 EmitLn; … … 363 366 begin 364 367 if Types.Count > 0 then begin 365 Inc(Inde tation);368 Inc(Indentation); 366 369 for I := 0 to Types.Count - 1 do 367 370 with TType(Types[I]) do … … 371 374 EmitLn(';'); 372 375 end; 373 Dec(Inde tation);376 Dec(Indentation); 374 377 EmitLn(''); 375 378 end;
Note:
See TracChangeset
for help on using the changeset viewer.