codetools: ppu parser: ibResources

git-svn-id: trunk@30836 -
This commit is contained in:
mattias 2011-05-21 13:05:20 +00:00
parent e911078421
commit 331286a3eb

View File

@ -542,6 +542,7 @@ type
procedure ReadUsedUnits;
procedure ReadModuleOptions;
procedure ReadLinkContainer(Nr: byte);
procedure ReadResources;
procedure ReadImportSymbols;
procedure ReadDerefData;
procedure ReadDerefMap;
@ -1096,9 +1097,12 @@ begin
iblinkunitofiles,iblinkunitstaticlibs,iblinkunitsharedlibs,
iblinkotherofiles,iblinkotherstaticlibs,iblinkothersharedlibs,
ibresources,iblinkotherframeworks:
iblinkotherframeworks:
ReadLinkContainer(EntryNr);
ibresources:
ReadResources;
ibImportSymbols:
ReadImportSymbols;
@ -1619,7 +1623,7 @@ begin
if fChangeEndian then
FEntry.size:=SwapEndian(FEntry.size);
{$IFDEF VerbosePPUParser}
DebugLn(['TPPU.ReadEntry nr=',FEntry.Nr,'=',PPUEntryName(FEntry.nr),' streampos=',FDataPos,' type-id=',FEntry.id]);
//DebugLn(['TPPU.ReadEntry nr=',FEntry.Nr,'=',PPUEntryName(FEntry.nr),' streampos=',FDataPos,' type-id=',FEntry.id]);
{$ENDIF}
if not (FEntry.id in [mainentryid,subentryid]) then
ErrorInvalidTypeID;
@ -2002,8 +2006,6 @@ begin
Desc:='Link other static lib: ';
iblinkothersharedlibs :
Desc:='Link other shared lib: ';
ibresources :
Desc:='Resource file: ';
iblinkotherframeworks:
Desc:='Link framework: ';
end;
@ -2021,6 +2023,20 @@ begin
end;
end;
procedure TPPU.ReadResources;
{$IFDEF VerbosePPUParser}
var
Filename: ShortString;
{$ENDIF}
begin
while not EndOfEntry do begin
{$IFDEF VerbosePPUParser}Filename:={$ENDIF}ReadEntryShortstring;
{$IFDEF VerbosePPUParser}
DebugLn(['TPPU.ReadResources file: '+Filename]);
{$ENDIF}
end;
end;
procedure TPPU.ReadImportSymbols;
var
SymbolCount: LongInt;