Ignore:
Timestamp:
Oct 18, 2010, 12:39:37 PM (14 years ago)
Author:
george
Message:
  • Fixed: Parsing of strings.
  • Modified: Now supported C target "Dynamic C" dialect.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Compiler/UCompiler.pas

    r64 r67  
    4545    destructor Destroy; override;
    4646    procedure Init;
    47     procedure Compile(ModuleName: string; Source: TStringList);
     47    procedure Compile(ModuleName: string; Source: TStringList; TargetFolder: string);
    4848    property OnErrorMessage: TOnErrorMessage read FOnErrorMessage
    4949      write FOnErrorMessage;
     
    5454{ TCompiler }
    5555
    56 procedure TCompiler.Compile(ModuleName: string; Source: TStringList);
     56procedure TCompiler.Compile(ModuleName: string; Source: TStringList;
     57  TargetFolder: string);
    5758var
    5859  NewModule: TModule;
     
    7071      Producer.Produce(TModule(ProgramCode.Modules[I]));
    7172      Producer.AssignToStringList(ProducedCode);
    72       ForceDirectories(CompiledFolder + DirectorySeparator + Producer.ClassName);
    73       ProducedCode.SaveToFile(CompiledFolder + DirectorySeparator + Producer.ClassName +
     73      ForceDirectories(TargetFolder + DirectorySeparator +
     74        CompiledFolder + DirectorySeparator + Producer.ClassName);
     75      ProducedCode.SaveToFile(TargetFolder + DirectorySeparator +
     76        CompiledFolder + DirectorySeparator + Producer.ClassName +
    7477        DirectorySeparator + TModule(ProgramCode.Modules[I]).Name + Producer.FileExtension);
    7578    end;
Note: See TracChangeset for help on using the changeset viewer.