diff options
author | Michael Forney <mforney@mforney.org> | 2019-02-12 13:56:50 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-12 13:56:50 -0800 |
commit | 090ae821ce8a075e13ebf47c04e4e2781c295283 (patch) | |
tree | 2e3fdd4d6a6bc83bb354fd01c8f9831052ffb64d /util.h | |
parent | 07e3ee1cf0851129eeb51e671819f7f550ec1e4c (diff) |
Fix nested arrays
We need to traverse the type hierarchy from inside to out to calculate
size/alignment of arrays.
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -22,6 +22,7 @@ void *xmalloc(size_t); char *progname(char *, char *); void listinsert(struct list *, struct list *); +void listinsertlist(struct list *, struct list *); void listremove(struct list *); #define listelement(list, type, member) (type *)((char *)list - offsetof(type, member)) |