Move the list member to the top of hashtable_pair struct
This may make debugging easier with limited debuggers.
This commit is contained in:
parent
1c38ab17f5
commit
3c9e5c9925
@ -8,6 +8,9 @@
|
|||||||
#ifndef HASHTABLE_H
|
#ifndef HASHTABLE_H
|
||||||
#define HASHTABLE_H
|
#define HASHTABLE_H
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "jansson.h"
|
||||||
|
|
||||||
struct hashtable_list {
|
struct hashtable_list {
|
||||||
struct hashtable_list *prev;
|
struct hashtable_list *prev;
|
||||||
struct hashtable_list *next;
|
struct hashtable_list *next;
|
||||||
@ -17,8 +20,8 @@ struct hashtable_list {
|
|||||||
key-value pair. In this case, it just encodes some extra data,
|
key-value pair. In this case, it just encodes some extra data,
|
||||||
too */
|
too */
|
||||||
struct hashtable_pair {
|
struct hashtable_pair {
|
||||||
size_t hash;
|
|
||||||
struct hashtable_list list;
|
struct hashtable_list list;
|
||||||
|
size_t hash;
|
||||||
json_t *value;
|
json_t *value;
|
||||||
size_t serial;
|
size_t serial;
|
||||||
char key[1];
|
char key[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user