|
@@ -2426,11 +2426,12 @@ implementation
|
|
begin
|
|
begin
|
|
inherited ppuload(recorddef,ppufile);
|
|
inherited ppuload(recorddef,ppufile);
|
|
symtable:=trecordsymtable.create(0);
|
|
symtable:=trecordsymtable.create(0);
|
|
- trecordsymtable(symtable).datasize:=ppufile.getaint;
|
|
|
|
trecordsymtable(symtable).fieldalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).fieldalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).recordalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).recordalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).padalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).padalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).usefieldalignment:=shortint(ppufile.getbyte);
|
|
trecordsymtable(symtable).usefieldalignment:=shortint(ppufile.getbyte);
|
|
|
|
+ { requires usefieldalignment to be set }
|
|
|
|
+ trecordsymtable(symtable).datasize:=ppufile.getaint;
|
|
trecordsymtable(symtable).ppuload(ppufile);
|
|
trecordsymtable(symtable).ppuload(ppufile);
|
|
symtable.defowner:=self;
|
|
symtable.defowner:=self;
|
|
isunion:=false;
|
|
isunion:=false;
|
|
@@ -2486,11 +2487,11 @@ implementation
|
|
procedure trecorddef.ppuwrite(ppufile:tcompilerppufile);
|
|
procedure trecorddef.ppuwrite(ppufile:tcompilerppufile);
|
|
begin
|
|
begin
|
|
inherited ppuwrite(ppufile);
|
|
inherited ppuwrite(ppufile);
|
|
- ppufile.putaint(trecordsymtable(symtable).datasize);
|
|
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).fieldalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).fieldalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).recordalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).recordalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).padalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).padalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).usefieldalignment));
|
|
ppufile.putbyte(byte(trecordsymtable(symtable).usefieldalignment));
|
|
|
|
+ ppufile.putaint(trecordsymtable(symtable).datasize);
|
|
ppufile.writeentry(ibrecorddef);
|
|
ppufile.writeentry(ibrecorddef);
|
|
trecordsymtable(symtable).ppuwrite(ppufile);
|
|
trecordsymtable(symtable).ppuwrite(ppufile);
|
|
end;
|
|
end;
|