Changeset 74 for trunk/Compiler/UCompiler.pas
- Timestamp:
- Jan 18, 2018, 11:54:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/UCompiler.pas
r72 r74 7 7 uses 8 8 SysUtils, Variants, Classes, Contnrs, FileUtil, UModularSystem, UCompilerAPI, 9 Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget; 9 Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget, 10 fgl; 10 11 11 12 type … … 44 45 public 45 46 AbstractCode: TProgram; 46 ErrorMessages: T ListObject; // TListObject<TErrorMessage>47 ErrorMessages: TFPGObjectList<TErrorMessage>; 47 48 CompiledFolder: string; 48 49 … … 76 77 resourcestring 77 78 SNothingToAnalyze = 'Nothing to analyze'; 78 SRewritingExistedTarget = 'Re qriting existing target file %s';79 SRewritingExistedTarget = 'Rewriting existing target file %s'; 79 80 80 81 { TSourceFileManager } … … 99 100 begin 100 101 try 101 ForceDirectories UTF8(ExtractFileDir(FileName));102 if FileExists UTF8(FileName) then102 ForceDirectories(ExtractFileDir(FileName)); 103 if FileExists(FileName) then 103 104 F := TFileStream.Create(UTF8Decode(FileName), fmOpenWrite) 104 105 else F := TFileStream.Create(UTF8Decode(FileName), fmCreate); … … 118 119 while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I); 119 120 if I < Files.Count then begin 120 if FileExists UTF8(Files[I]) then begin121 if FileExists(Files[I]) then begin 121 122 Content := LoadStringFromFile(Files[I]); 122 123 Result := True; … … 172 173 Executors := TListObject.Create; 173 174 API := TCompilerAPI.Create; 175 API.Compiler := Self; 174 176 AbstractCode := TProgram.Create; 175 ErrorMessages := T ListObject.Create;177 ErrorMessages := TFPGObjectList<TErrorMessage>.Create; 176 178 CompiledFolder := 'Compiled'; 177 179 ModuleManager := TModuleManager.Create(nil);
Note:
See TracChangeset
for help on using the changeset viewer.