X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/2b2252cc8d730004a1c95f227a0024a28b65087c..8c2c58ae77fe3afce6ac4d027e9e47157a535961:/doc/structures.tex diff --git a/doc/structures.tex b/doc/structures.tex index d379c99..b63a336 100644 --- a/doc/structures.tex +++ b/doc/structures.tex @@ -139,6 +139,7 @@ recommended. const char *name; \\ const char *nick; \\ size_t initsz; \\ + size_t align; \\ void *(*imprint)(void *@

); \\ void *(*init)(void *@

); \\ size_t n_supers; \\ @@ -167,6 +168,8 @@ recommended. \item[initsz] The size in bytes required to store an instance of the class. + \item[align] A sufficient alignment for the class's instance storage. + \item[imprint] A pointer to a function: given a pointer @

to at least @ bytes of appropriately aligned memory, `imprint' this memory it so that it becomes a minimally functional instance of the class: all of