aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-12 13:56:50 -0800
committerMichael Forney <mforney@mforney.org>2019-02-12 13:56:50 -0800
commit090ae821ce8a075e13ebf47c04e4e2781c295283 (patch)
tree2e3fdd4d6a6bc83bb354fd01c8f9831052ffb64d /util.h
parent07e3ee1cf0851129eeb51e671819f7f550ec1e4c (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.h b/util.h
index 50b8f49..ae70938 100644
--- a/util.h
+++ b/util.h
@@ -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))