Explorar el Código

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

git-svn-id: trunk@38916 -
svenbarth hace 7 años
padre
commit
083781bf0c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;