Add a new class slot `align', holding the instance layout alignment.
[sod] / lib / sod-structs.3
index a6c9db2..5624d33 100644 (file)
@@ -95,6 +95,7 @@ struct SodObject__ilayout {
 \h'8n'const char *name;
 \h'8n'const char *nick;
 \h'8n'size_t initsz;
+\h'8n'size_t align;
 \h'8n'void *(*imprint)(void *\fIp\fB);
 \h'8n'void *(*init)(void *\fIp\fB);
 \h'8n'size_t n_supers;
@@ -253,6 +254,9 @@ A pointer to the class's nickname.
 .B size_t initsz;
 The size in bytes required to store an instance of the class.
 .TP
+.B size_t align;
+A sufficient alignment for the class's instance storage.
+.TP
 .BI "void *(*imprint)(void *" p );
 A pointer to a function:
 given a pointer