Skip to content

Commit

Permalink
Upgrade ut* libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Jan 27, 2024
1 parent cb93cd6 commit ef0dc61
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmake/SgPCRE2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#
# Cross-platform library which helps to develop web servers or frameworks.
#
# Copyright (C) 2016-2023 Silvio Clecio <[email protected]>
# Copyright (C) 2016-2024 Silvio Clecio <[email protected]>
#
# Sagui library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion include/sagui.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ extern "C" {

#define SG_VERSION_MAJOR 3
#define SG_VERSION_MINOR 4
#define SG_VERSION_PATCH 3
#define SG_VERSION_PATCH 4
#define SG_VERSION_HEX \
((SG_VERSION_MAJOR << 16) | (SG_VERSION_MINOR << 8) | (SG_VERSION_PATCH))

Expand Down
10 changes: 7 additions & 3 deletions src/uthash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2003-2021, Troy D. Hanson http:https://troydhanson.github.io/uthash/
Copyright (c) 2003-2022, Troy D. Hanson https:https://troydhanson.github.io/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -51,6 +51,8 @@ typedef unsigned char uint8_t;
#else /* VS2008 or older (or VS2010 in C mode) */
#define NO_DECLTYPE
#endif
#elif defined(__MCST__) /* Elbrus C Compiler */
#define DECLTYPE(x) (__typeof(x))
#elif defined(__BORLANDC__) || defined(__ICCARM__) || defined(__LCC__) || defined(__WATCOMC__)
#define NO_DECLTYPE
#else /* GNU, Sun and other compilers */
Expand Down Expand Up @@ -450,7 +452,7 @@ do {

#define HASH_DELETE_HH(hh,head,delptrhh) \
do { \
struct UT_hash_handle *_hd_hh_del = (delptrhh); \
const struct UT_hash_handle *_hd_hh_del = (delptrhh); \
if ((_hd_hh_del->prev == NULL) && (_hd_hh_del->next == NULL)) { \
HASH_BLOOM_FREE((head)->hh.tbl); \
uthash_free((head)->hh.tbl->buckets, \
Expand Down Expand Up @@ -593,7 +595,9 @@ do {


/* SAX/FNV/OAT/JEN hash functions are macro variants of those listed at
* https://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx */
* https://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
* (archive link: https://archive.is/Ivcan )
*/
#define HASH_SAX(key,keylen,hashv) \
do { \
unsigned _sx_i; \
Expand Down
7 changes: 5 additions & 2 deletions src/utlist.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2007-2021, Troy D. Hanson http:https://troydhanson.github.io/uthash/
Copyright (c) 2007-2022, Troy D. Hanson https:https://troydhanson.github.io/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -70,6 +70,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else /* VS2008 or older (or VS2010 in C mode) */
#define NO_DECLTYPE
#endif
#elif defined(__MCST__) /* Elbrus C Compiler */
#define LDECLTYPE(x) __typeof(x)
#elif defined(__BORLANDC__) || defined(__ICCARM__) || defined(__LCC__) || defined(__WATCOMC__)
#define NO_DECLTYPE
#else /* GNU, Sun and other compilers */
Expand Down Expand Up @@ -709,7 +711,8 @@ do {
assert((del)->prev != NULL); \
if ((del)->prev == (del)) { \
(head)=NULL; \
} else if ((del)==(head)) { \
} else if ((del) == (head)) { \
assert((del)->next != NULL); \
(del)->next->prev = (del)->prev; \
(head) = (del)->next; \
} else { \
Expand Down
2 changes: 1 addition & 1 deletion src/utstring.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2021, Troy D. Hanson http:https://troydhanson.github.io/uthash/
Copyright (c) 2008-2022, Troy D. Hanson https:https://troydhanson.github.io/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down

0 comments on commit ef0dc61

Please sign in to comment.