Skip to content

Commit

Permalink
Bump v3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Jan 17, 2021
1 parent 781e855 commit 06c7ed4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
14 changes: 14 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
2021-01-17 silvioprog <[email protected]>

Bump v3.2.2

Declared macro "SG_EXTERN" accidentally missing in function "sg_httpres_is_empty()".

2021-01-12 silvioprog <[email protected]>

Upgraded the library version.

Fixed LGTM alerts.

2021-01-02 silvioprog <[email protected]>

Bump v3.2.0

Fixed broken test for expr feature.

Fixed PVS-Studio warnings.

2020-12-30 silvioprog <[email protected]>
Expand Down
18 changes: 4 additions & 14 deletions src/uthash.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,12 @@ do {
#define uthash_strlen(s) strlen(s)
#endif

#ifdef uthash_memcmp
/* This warning will not catch programs that define uthash_memcmp AFTER including uthash.h. */
#warning "uthash_memcmp is deprecated; please use HASH_KEYCMP instead"
#else
#define uthash_memcmp(a,b,n) memcmp(a,b,n)
#ifndef HASH_FUNCTION
#define HASH_FUNCTION(keyptr,keylen,hashv) HASH_JEN(keyptr, keylen, hashv)
#endif

#ifndef HASH_KEYCMP
#define HASH_KEYCMP(a,b,n) uthash_memcmp(a,b,n)
#define HASH_KEYCMP(a,b,n) memcmp(a,b,n)
#endif

#ifndef uthash_noexpand_fyi
Expand Down Expand Up @@ -151,7 +148,7 @@ do {

#define HASH_VALUE(keyptr,keylen,hashv) \
do { \
HASH_FCN(keyptr, keylen, hashv); \
HASH_FUNCTION(keyptr, keylen, hashv); \
} while (0)

#define HASH_FIND_BYHASHVALUE(hh,head,keyptr,keylen,hashval,out) \
Expand Down Expand Up @@ -583,13 +580,6 @@ do {
#define HASH_EMIT_KEY(hh,head,keyptr,fieldlen)
#endif

/* default to Jenkin's hash unless overridden e.g. DHASH_FUNCTION=HASH_SAX */
#ifdef HASH_FUNCTION
#define HASH_FCN HASH_FUNCTION
#else
#define HASH_FCN HASH_JEN
#endif

/* The Bernstein hash function, used in Perl prior to v5.6. Note (x<<5+x)=x*33. */
#define HASH_BER(key,keylen,hashv) \
do { \
Expand Down

0 comments on commit 06c7ed4

Please sign in to comment.