X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/a42893dda5f4dd2b89fbfe4e497da261159225ca..a3e1423b06af77cd64f729a8a1a598118bd09f4f:/doc/structures.tex diff --git a/doc/structures.tex b/doc/structures.tex index 42739ef..3826bdc 100644 --- a/doc/structures.tex +++ b/doc/structures.tex @@ -204,6 +204,7 @@ recommended. const char *name; \\ const char *nick; \\ size_t initsz; \\ + size_t align; \\ void *(*imprint)(void *@

); \\ size_t n_supers; \\ const SodClass *const *supers; \\ @@ -231,6 +232,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