Move the list member to the top of hashtable_pair struct

This may make debugging easier with limited debuggers.
This commit is contained in:
Petri Lehtinen 2014-12-10 07:40:35 +02:00
parent 1c38ab17f5
commit 3c9e5c9925

View File

@ -8,6 +8,9 @@
#ifndef HASHTABLE_H
#define HASHTABLE_H
#include <stdlib.h>
#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];