Changeset 72 for trunk/Compiler/UCompiler.pas
- Timestamp:
- Aug 1, 2012, 12:16:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/UCompiler.pas
r71 r72 7 7 uses 8 8 SysUtils, Variants, Classes, Contnrs, FileUtil, UModularSystem, UCompilerAPI, 9 Dialogs, USourceCode , UProducer, UAnalyzer, SpecializedList, UTarget;9 Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget; 10 10 11 11 type … … 47 47 CompiledFolder: string; 48 48 49 Targets: TListTarget; 50 Analyzers: TListAnalyzer; 51 Convertors: TListObject; 52 Executors: TListObject; 49 53 API: TCompilerAPI; 50 54 TargetFolder: string; … … 163 167 constructor TCompiler.Create; 164 168 begin 169 Targets := TListTarget.Create; 170 Analyzers := TListAnalyzer.Create; 171 Convertors := TListObject.Create; 172 Executors := TListObject.Create; 165 173 API := TCompilerAPI.Create; 166 174 AbstractCode := TProgram.Create; … … 182 190 FreeAndNil(AbstractCode); 183 191 FreeAndNil(ErrorMessages); 192 FreeAndNil(Targets); 193 FreeAndNil(Analyzers); 194 FreeAndNil(Executors); 195 FreeAndNil(Convertors); 184 196 end; 185 197 … … 210 222 if MainSource <> '' then begin 211 223 Analyzer.FileName := MainSource; 212 Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode );224 Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode2); 213 225 Analyzer.Process; 214 226 //ShowMessage(IntToHex(Integer(Addr(Analyzer.OnGetSource)), 8));
Note:
See TracChangeset
for help on using the changeset viewer.