Ignore:
Timestamp:
Jan 18, 2018, 11:54:13 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Build under Lazarus 1.8.0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompiler.pas

    r72 r74  
    77uses
    88  SysUtils, Variants, Classes, Contnrs, FileUtil, UModularSystem, UCompilerAPI,
    9   Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget;
     9  Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget,
     10  fgl;
    1011
    1112type
     
    4445  public
    4546    AbstractCode: TProgram;
    46     ErrorMessages: TListObject; // TListObject<TErrorMessage>
     47    ErrorMessages: TFPGObjectList<TErrorMessage>;
    4748    CompiledFolder: string;
    4849
     
    7677resourcestring
    7778  SNothingToAnalyze = 'Nothing to analyze';
    78   SRewritingExistedTarget = 'Reqriting existing target file %s';
     79  SRewritingExistedTarget = 'Rewriting existing target file %s';
    7980
    8081{ TSourceFileManager }
     
    99100begin
    100101  try
    101     ForceDirectoriesUTF8(ExtractFileDir(FileName));
    102     if FileExistsUTF8(FileName) then
     102    ForceDirectories(ExtractFileDir(FileName));
     103    if FileExists(FileName) then
    103104      F := TFileStream.Create(UTF8Decode(FileName), fmOpenWrite)
    104105      else F := TFileStream.Create(UTF8Decode(FileName), fmCreate);
     
    118119  while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I);
    119120  if I < Files.Count then begin
    120     if FileExistsUTF8(Files[I]) then begin
     121    if FileExists(Files[I]) then begin
    121122      Content := LoadStringFromFile(Files[I]);
    122123      Result := True;
     
    172173  Executors := TListObject.Create;
    173174  API := TCompilerAPI.Create;
     175  API.Compiler := Self;
    174176  AbstractCode := TProgram.Create;
    175   ErrorMessages := TListObject.Create;
     177  ErrorMessages := TFPGObjectList<TErrorMessage>.Create;
    176178  CompiledFolder := 'Compiled';
    177179  ModuleManager := TModuleManager.Create(nil);
Note: See TracChangeset for help on using the changeset viewer.