Changeset 62 for trunk/Compiler
- Timestamp:
- Jul 17, 2012, 10:14:41 AM (12 years ago)
- Location:
- trunk/Compiler
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Analyze/UAnalyzerPascal.pas
r58 r62 568 568 if NextToken = 'initialization' then Break 569 569 else if NextToken = 'finalization' then Break 570 else if NextToken = 'end' then Break 570 571 else begin 571 572 ErrorMessage(SInvalidConstruction, [NextToken]); … … 1444 1445 Module := SourceCode.ParentModule.ParentProgram.Modules.Search(Name); 1445 1446 if not Assigned(Module) then begin 1446 if ParseFile(Name ) then begin1447 if ParseFile(Name + '.pas') then begin 1447 1448 Module := SourceCode.ParentModule.ParentProgram.Modules.Search(Name); 1448 1449 Exported := AExported; -
trunk/Compiler/UAnalyzer.pas
r44 r62 374 374 // Update cursor position 375 375 Inc(CodePosition.X); 376 if (CurrentChar = LineEnding ) then begin376 if (CurrentChar = LineEnding[1]) then begin 377 377 CodePosition.X := 0; 378 378 Inc(CodePosition.Y); -
trunk/Compiler/UCompiler.pas
r59 r62 111 111 begin 112 112 I := 0; 113 while (I < Files.Count) and (ExtractFileName Only(Files[I]) <> Name) do Inc(I);113 while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I); 114 114 if I < Files.Count then begin 115 115 if FileExistsUTF8(Files[I]) then begin … … 127 127 begin 128 128 I := 0; 129 while (I < Files.Count) and (ExtractFileName Only(Files[I]) <> Name) do Inc(I);129 while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I); 130 130 if I >= Files.Count then begin 131 131 SaveStringToFile(Name, Content); … … 212 212 if MainSource <> '' then begin 213 213 Analyzer.FileName := MainSource; 214 Analyzer.OnGetSource(ExtractFileName Only(Analyzer.FileName), Analyzer.SourceCode);214 Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode); 215 215 Analyzer.Process; 216 216 //ShowMessage(IntToHex(Integer(Addr(Analyzer.OnGetSource)), 8));
Note:
See TracChangeset
for help on using the changeset viewer.