Ignore:
Timestamp:
Feb 14, 2012, 7:33:51 AM (12 years ago)
Author:
chronos
Message:
  • Added: Form containing list of supported compiler producers. Path to real compiler can be changed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Produce/UProducerDynamicC.pas

    r17 r37  
    5050begin
    5151  Name := 'Dynamic C';
     52  {$IFDEF Windows}
     53  CompilerPath := 'c:\Program Files\Dynamic C Rabbit 9.62\Dcrab_9.62.exe';
     54  {$ENDIF}
    5255end;
    5356
     
    142145  I: Integer;
    143146begin
    144   Indetation := 0;
     147  Indentation := 0;
    145148  with ProgramBlock do
    146149  for I := 0 to Modules.Count - 1 do
     
    180183begin
    181184  EmitLn('{');
    182   Inc(Indetation);
     185  Inc(Indentation);
    183186
    184187  // Variables
     
    191194    GenerateCommand(TCommand(BeginEnd.Commands[I]));
    192195
    193   Dec(Indetation);
     196  Dec(Indentation);
    194197  EmitLn('}');
    195198end;
     
    320323    EmitLn('struct');
    321324    EmitLn('{');
    322     Inc(Indetation);
     325    Inc(Indentation);
    323326    GenerateVariableList(TTypeRecord(AType).CommonBlock.Variables);
    324     Dec(Indetation);
     327    Dec(Indentation);
    325328    EmitLn('} ' + TranslateType(AType.Name) + ';');
    326329    EmitLn;
     
    363366begin
    364367  if Types.Count > 0 then begin
    365     Inc(Indetation);
     368    Inc(Indentation);
    366369    for I := 0 to Types.Count - 1 do
    367370    with TType(Types[I]) do
     
    371374      EmitLn(';');
    372375    end;
    373     Dec(Indetation);
     376    Dec(Indentation);
    374377    EmitLn('');
    375378  end;
Note: See TracChangeset for help on using the changeset viewer.