mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
Remember change_endian from ppufile for generictokenbuf reading
git-svn-id: trunk@19011 -
This commit is contained in:
parent
d3d91e40ab
commit
9073beffec
@ -61,6 +61,9 @@ interface
|
||||
genericdef : tstoreddef;
|
||||
genericdefderef : tderef;
|
||||
generictokenbuf : tdynamicarray;
|
||||
{ Set if PPU was generated with another
|
||||
endianess as current compiler or ppudump utils }
|
||||
change_endian : boolean;
|
||||
constructor create(dt:tdeftyp);
|
||||
constructor ppuload(dt:tdeftyp;ppufile:tcompilerppufile);
|
||||
destructor destroy;override;
|
||||
@ -1119,6 +1122,8 @@ implementation
|
||||
{$endif}
|
||||
generictokenbuf:=nil;
|
||||
genericdef:=nil;
|
||||
change_endian:=false;
|
||||
|
||||
{ Don't register forwarddefs, they are disposed at the
|
||||
end of an type block }
|
||||
if (dt=forwarddef) then
|
||||
@ -1175,6 +1180,7 @@ implementation
|
||||
if df_generic in defoptions then
|
||||
begin
|
||||
sizeleft:=ppufile.getlongint;
|
||||
change_endian:=ppufile.change_endian;
|
||||
initgeneric;
|
||||
while sizeleft>0 do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user