C-style bitpacking ("char c:1" and "int c:1" are often laid out
differently in C depending on the previous fields,
Not only this. C defines the layout as implementation depended. I once
was bitten by this when porting a networked project from a low endian
processor to a high endian processor :( .
Thus if we want binary portability of the structures we need to be
better than C (optionally defining the structure as high-endian or low
endian on user request) !!!!
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel