
7.10 The C structure
c_field
Datatype
- Specification:
-
datatype c_field = FIELD of { name : name, ctype : c_type, size : int, padding : int, offset : int }
- Description:
- This is used to encode field components of C structs. In addition to its size, this representation also has the offset for the field from the start of the record (useful for indexing) and also takes account of any 'padding' required within each field. This padding depends upon the particular compiler used to compile foreign code.
MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker