From 3c9e5c992567c411e22bf303a123cc6adcca97be Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Wed, 10 Dec 2014 07:40:35 +0200 Subject: [PATCH] Move the list member to the top of hashtable_pair struct This may make debugging easier with limited debuggers. --- src/hashtable.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hashtable.h b/src/hashtable.h index f54c3fe..fab6443 100644 --- a/src/hashtable.h +++ b/src/hashtable.h @@ -8,6 +8,9 @@ #ifndef HASHTABLE_H #define HASHTABLE_H +#include +#include "jansson.h" + struct hashtable_list { struct hashtable_list *prev; struct hashtable_list *next; @@ -17,8 +20,8 @@ struct hashtable_list { key-value pair. In this case, it just encodes some extra data, too */ struct hashtable_pair { - size_t hash; struct hashtable_list list; + size_t hash; json_t *value; size_t serial; char key[1];