On 04 Jan 2006, at 17:51, Hans Mårtensson wrote:
Does PPC 2.0.2 handle alignment of data the same way as former
versions?
The statements below have nothing to do with alignment.
Will the statements (the conditions)
if (dword(pBoxtemplate) and 1)=1 then pBoxtemplate:=nil;
I can only think of one way to interpret this.
if (dword(pBoxtemplate) and 2)=2 then inc(pBoxtemplate);
Somewhere in the past, inc(pBoxtemplate) would have increased
pBoxtemplate with one. Nowadays, this increases pBoxtemplate with
sizeof(pBoxtemplate^). I don't know when this change was done though,
but I'm quite confident it was before 1.0. If this is the behaviour
you need, it's ok.
be treated the same way, and is
pointer(pBoxItem) - pointer(pBoxAllokate)
still equal to the distance between the pointers measured in bytes,
regardless of the type of pBoxItem?
Yes.
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal