X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fq.h;h=997b470be52ec0172a42347cb136795efa4183c3;hp=3d09c25c1906b137005db806a4ee3c65f4aa2877;hb=ab2f7a4cd0eda09ff3af29058c45d098f869b598;hpb=79e69e1d109a95f9495b96b29a723758d06a71d9 diff --git a/lib/q.h b/lib/q.h index 3d09c25..997b470 100644 --- a/lib/q.h +++ b/lib/q.h @@ -223,6 +223,7 @@ void*trie_lookup(trie_t*t, unsigned const char*id); int trie_contains(trie_t*t, unsigned const char*id); void trie_remember(trie_t*t); void trie_rollback(trie_t*t); +void trie_dump(trie_t*t); array_t* array_new(); array_t* array_new2(type_t*type); @@ -257,7 +258,7 @@ void list_concat_(void*l1, void*l2); #define list_prepend(list, e) {sizeof((list)->next);list_prepend_(&(list),(e));} #define list_free(list) {sizeof((list)->next);list_free_(&(list));} #define list_deep_free(list) {sizeof((list)->next);list_deep_free_(&(list));} -#define list_clone(list) (sizeof((list)->next),list_clone_(&(list))) +#define list_clone(list) (sizeof((list)->next),(list?list_clone_(&(list)):0)) #define list_length(list) (sizeof((list)->next),list_length_(list)) #ifdef __cplusplus