Browse Source

Add an HASH_REPLACE_I64 helper macro

master
Con Kolivas 10 years ago
parent
commit
ac86d9b736
  1. 2
      src/uthash.h

2
src/uthash.h

@ -265,6 +265,8 @@ do {
HASH_FIND(hh,head,findint,sizeof(int64_t),out) HASH_FIND(hh,head,findint,sizeof(int64_t),out)
#define HASH_ADD_I64(head,intfield,add) \ #define HASH_ADD_I64(head,intfield,add) \
HASH_ADD(hh,head,intfield,sizeof(int64_t),add) HASH_ADD(hh,head,intfield,sizeof(int64_t),add)
#define HASH_REPLACE_I64(head,intfield,add,replaced) \
HASH_REPLACE(hh,head,intfield,sizeof(int64_t),add,replaced)
#define HASH_FIND_PTR(head,findptr,out) \ #define HASH_FIND_PTR(head,findptr,out) \
HASH_FIND(hh,head,findptr,sizeof(void *),out) HASH_FIND(hh,head,findptr,sizeof(void *),out)
#define HASH_ADD_PTR(head,ptrfield,add) \ #define HASH_ADD_PTR(head,ptrfield,add) \

Loading…
Cancel
Save