mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 12:20:19 +02:00
* ignore program module when resolving unit names during ppu load
git-svn-id: trunk@5749 -
This commit is contained in:
parent
b86e2aa33a
commit
6562e40a3e
@ -787,7 +787,11 @@ implementation
|
|||||||
hp:=tmodule(loaded_units.first);
|
hp:=tmodule(loaded_units.first);
|
||||||
while assigned(hp) do
|
while assigned(hp) do
|
||||||
begin
|
begin
|
||||||
if hp.modulename^=derefmap[id].modulename^ then
|
{ only check for units. The main program is also
|
||||||
|
as a unit in the loaded_units list. We simply need
|
||||||
|
to ignore this entry (PFV) }
|
||||||
|
if hp.is_unit and
|
||||||
|
(hp.modulename^=derefmap[id].modulename^) then
|
||||||
break;
|
break;
|
||||||
hp:=tmodule(hp.next);
|
hp:=tmodule(hp.next);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user