mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:29:39 +02:00
+ implemented TOmfLibObjectReader.openfile
git-svn-id: trunk@30773 -
This commit is contained in:
parent
3b56a5a767
commit
7849ffecf7
@ -426,8 +426,16 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TOmfLibObjectReader.openfile(const fn: string): boolean;
|
function TOmfLibObjectReader.openfile(const fn: string): boolean;
|
||||||
|
var
|
||||||
|
libsym: TOmfLibDictionaryEntry;
|
||||||
begin
|
begin
|
||||||
Result:=inherited openfile(fn);
|
result:=false;
|
||||||
|
libsym:=TOmfLibDictionaryEntry(LibSymbols.Find(ModName2DictEntry(fn)));
|
||||||
|
if not assigned(libsym) then
|
||||||
|
exit;
|
||||||
|
CurrMemberPos:=libsym.PageNum*FPageSize;
|
||||||
|
inherited Seek(CurrMemberPos);
|
||||||
|
result:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TOmfLibObjectReader.closefile;
|
procedure TOmfLibObjectReader.closefile;
|
||||||
|
Loading…
Reference in New Issue
Block a user