瀏覽代碼

* keep track if the unit was found by using a default namespace as prefix

git-svn-id: trunk@38916 -
svenbarth 7 年之前
父節點
當前提交
083781bf0c
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/fppu.pas

+ 3 - 0
compiler/fppu.pas

@@ -50,6 +50,7 @@ interface
           ppufile    : tcompilerppufile; { the PPU file }
           ppufile    : tcompilerppufile; { the PPU file }
           sourcefn   : TPathStr; { Source specified with "uses .. in '..'" }
           sourcefn   : TPathStr; { Source specified with "uses .. in '..'" }
           comments   : TCmdStrList;
           comments   : TCmdStrList;
+          nsprefix   : TCmdStr; { Namespace prefix the unit was found with }
 {$ifdef Test_Double_checksum}
 {$ifdef Test_Double_checksum}
           crc_array  : pointer;
           crc_array  : pointer;
           crc_size   : longint;
           crc_size   : longint;
@@ -582,6 +583,8 @@ var
 
 
                      nsitem:=TCmdStrListItem(nsitem.next);
                      nsitem:=TCmdStrListItem(nsitem.next);
                    end;
                    end;
+                 if assigned(nsitem) then
+                   nsprefix:=nsitem.str;
                end;
                end;
            end;
            end;
          search_unit:=fnd;
          search_unit:=fnd;