Changeset 62 for trunk/Compiler


Ignore:
Timestamp:
Jul 17, 2012, 10:14:41 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Show tab sheets of source code forms on file click in project manager.
  • Fixed: Compilation error message line calculation on Windows.
Location:
trunk/Compiler
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Analyze/UAnalyzerPascal.pas

    r58 r62  
    568568      if NextToken = 'initialization' then Break
    569569      else if NextToken = 'finalization' then Break
     570      else if NextToken = 'end' then Break
    570571      else begin
    571572        ErrorMessage(SInvalidConstruction, [NextToken]);
     
    14441445      Module := SourceCode.ParentModule.ParentProgram.Modules.Search(Name);
    14451446      if not Assigned(Module) then begin
    1446         if ParseFile(Name) then begin
     1447        if ParseFile(Name + '.pas') then begin
    14471448          Module := SourceCode.ParentModule.ParentProgram.Modules.Search(Name);
    14481449          Exported := AExported;
  • trunk/Compiler/UAnalyzer.pas

    r44 r62  
    374374        // Update cursor position
    375375        Inc(CodePosition.X);
    376         if (CurrentChar = LineEnding) then begin
     376        if (CurrentChar = LineEnding[1]) then begin
    377377          CodePosition.X := 0;
    378378          Inc(CodePosition.Y);
  • trunk/Compiler/UCompiler.pas

    r59 r62  
    111111begin
    112112  I := 0;
    113   while (I < Files.Count) and (ExtractFileNameOnly(Files[I]) <> Name) do Inc(I);
     113  while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I);
    114114  if I < Files.Count then begin
    115115    if FileExistsUTF8(Files[I]) then begin
     
    127127begin
    128128  I := 0;
    129   while (I < Files.Count) and (ExtractFileNameOnly(Files[I]) <> Name) do Inc(I);
     129  while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I);
    130130  if I >= Files.Count then begin
    131131    SaveStringToFile(Name, Content);
     
    212212  if MainSource <> '' then begin
    213213    Analyzer.FileName := MainSource;
    214     Analyzer.OnGetSource(ExtractFileNameOnly(Analyzer.FileName), Analyzer.SourceCode);
     214    Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode);
    215215    Analyzer.Process;
    216216    //ShowMessage(IntToHex(Integer(Addr(Analyzer.OnGetSource)), 8));
Note: See TracChangeset for help on using the changeset viewer.