diff --git a/LICENSE b/LICENSE index af78128c..17e8891e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2005-2018, Troy D. Hanson http://troydhanson.github.com/uthash/ +Copyright (c) 2005-2020, Troy D. Hanson http://troydhanson.github.com/uthash/ All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/doc/ChangeLog.txt b/doc/ChangeLog.txt index 281de80f..60c3520c 100644 --- a/doc/ChangeLog.txt +++ b/doc/ChangeLog.txt @@ -5,6 +5,15 @@ Click to return to the link:index.html[uthash home page]. NOTE: This ChangeLog may be incomplete and/or incorrect. See the git commit log. +Version 2.2.0 (2020-12-17) +-------------------------- +* add HASH_NO_STDINT for platforms without C99 +* silence many -Wcast-qual warnings (thanks, Olaf Bergmann!) +* skip hash computation when finding in an empty hash (thanks, Huansong Fu!) +* rename oom to utarray_oom, in utarray.h (thanks, Hong Xu!) +* rename oom to utstring_oom, in utstring.h (thanks, Hong Xu!) +* remove MurmurHash/HASH_MUR + Version 2.1.0 (2018-12-20) -------------------------- * silence some Clang static analysis warnings diff --git a/doc/license.html b/doc/license.html index c7068455..b80aac21 100644 --- a/doc/license.html +++ b/doc/license.html @@ -21,7 +21,7 @@
-Copyright (c) 2005-2018, Troy D. Hanson  http://troydhanson.github.com/uthash/
+Copyright (c) 2005-2020, Troy D. Hanson  http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff --git a/doc/userguide.txt b/doc/userguide.txt
index 4d8ce8f0..748e1ffa 100644
--- a/doc/userguide.txt
+++ b/doc/userguide.txt
@@ -1,7 +1,7 @@
 uthash User Guide
 =================
 Troy D. Hanson, Arthur O'Dwyer
-v2.1.0, December 2018
+v2.2.0, December 2020
 
 To download uthash, follow this link back to the
 https://github.com/troydhanson/uthash[GitHub project page].
diff --git a/doc/utarray.txt b/doc/utarray.txt
index 25d94e26..b51c0357 100644
--- a/doc/utarray.txt
+++ b/doc/utarray.txt
@@ -1,7 +1,7 @@
 utarray: dynamic array macros for C
 ===================================
 Troy D. Hanson 
-v2.1.0, December 2018
+v2.2.0, December 2020
 
 Here's a link back to the https://github.com/troydhanson/uthash[GitHub project page].
 
diff --git a/doc/utlist.txt b/doc/utlist.txt
index 06b6b00d..f7a0fd68 100644
--- a/doc/utlist.txt
+++ b/doc/utlist.txt
@@ -1,7 +1,7 @@
 utlist: linked list macros for C structures
 ===========================================
 Troy D. Hanson 
-v2.1.0, December 2018
+v2.2.0, December 2020
 
 Here's a link back to the https://github.com/troydhanson/uthash[GitHub project page].
 
diff --git a/doc/utringbuffer.txt b/doc/utringbuffer.txt
index 86206c1e..f1962e65 100644
--- a/doc/utringbuffer.txt
+++ b/doc/utringbuffer.txt
@@ -1,7 +1,7 @@
 utringbuffer: dynamic ring-buffer macros for C
 ==============================================
 Arthur O'Dwyer 
-v2.1.0, December 2018
+v2.2.0, December 2020
 
 Here's a link back to the https://github.com/troydhanson/uthash[GitHub project page].
 
diff --git a/doc/utstack.txt b/doc/utstack.txt
index 0c628c06..9fda10d1 100644
--- a/doc/utstack.txt
+++ b/doc/utstack.txt
@@ -1,7 +1,7 @@
 utstack: intrusive stack macros for C
 =====================================
 Arthur O'Dwyer 
-v2.1.0, December 2018
+v2.2.0, December 2020
 
 Here's a link back to the https://github.com/troydhanson/uthash[GitHub project page].
 
diff --git a/doc/utstring.txt b/doc/utstring.txt
index 56e2f4c0..27dd18d2 100644
--- a/doc/utstring.txt
+++ b/doc/utstring.txt
@@ -1,7 +1,7 @@
 utstring: dynamic string macros for C
 =====================================
 Troy D. Hanson 
-v2.1.0, December 2018
+v2.2.0, December 2020
 
 Here's a link back to the https://github.com/troydhanson/uthash[GitHub project page].
 
diff --git a/package.json b/package.json
index 28377541..b8c47239 100644
--- a/package.json
+++ b/package.json
@@ -24,5 +24,5 @@
     "src/utstring.h"
   ],
 
-  "version": "2.1.0"
+  "version": "2.2.0"
 }
diff --git a/src/utarray.h b/src/utarray.h
index 223f950f..ce067bd5 100644
--- a/src/utarray.h
+++ b/src/utarray.h
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2008-2018, Troy D. Hanson   http://troydhanson.github.com/uthash/
+Copyright (c) 2008-2020, Troy D. Hanson   http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef UTARRAY_H
 #define UTARRAY_H
 
-#define UTARRAY_VERSION 2.1.0
+#define UTARRAY_VERSION 2.2.0
 
 #include   /* size_t */
 #include   /* memset, etc */
diff --git a/src/uthash.h b/src/uthash.h
index 3d94eb0b..c89a9b4f 100644
--- a/src/uthash.h
+++ b/src/uthash.h
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2003-2018, Troy D. Hanson     http://troydhanson.github.com/uthash/
+Copyright (c) 2003-2020, Troy D. Hanson     http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -24,7 +24,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef UTHASH_H
 #define UTHASH_H
 
-#define UTHASH_VERSION 2.1.0
+#define UTHASH_VERSION 2.2.0
 
 #include    /* memcmp, memset, strlen */
 #include    /* ptrdiff_t */
diff --git a/src/utlist.h b/src/utlist.h
index 5bb1ac9b..dd8e975e 100644
--- a/src/utlist.h
+++ b/src/utlist.h
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2007-2018, Troy D. Hanson   http://troydhanson.github.com/uthash/
+Copyright (c) 2007-2020, Troy D. Hanson   http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -24,7 +24,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef UTLIST_H
 #define UTLIST_H
 
-#define UTLIST_VERSION 2.1.0
+#define UTLIST_VERSION 2.2.0
 
 #include 
 
diff --git a/src/utringbuffer.h b/src/utringbuffer.h
index ce2890e6..708ccec1 100644
--- a/src/utringbuffer.h
+++ b/src/utringbuffer.h
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2015-2018, Troy D. Hanson   http://troydhanson.github.com/uthash/
+Copyright (c) 2015-2020, Troy D. Hanson   http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef UTRINGBUFFER_H
 #define UTRINGBUFFER_H
 
-#define UTRINGBUFFER_VERSION 2.1.0
+#define UTRINGBUFFER_VERSION 2.2.0
 
 #include 
 #include 
diff --git a/src/utstack.h b/src/utstack.h
index 3b0c1a0d..e11228ce 100644
--- a/src/utstack.h
+++ b/src/utstack.h
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2018-2018, Troy D. Hanson   http://troydhanson.github.com/uthash/
+Copyright (c) 2018-2020, Troy D. Hanson   http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -24,7 +24,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef UTSTACK_H
 #define UTSTACK_H
 
-#define UTSTACK_VERSION 2.1.0
+#define UTSTACK_VERSION 2.2.0
 
 /*
  * This file contains macros to manipulate a singly-linked list as a stack.
diff --git a/src/utstring.h b/src/utstring.h
index 4cf5ffd3..bc67b172 100644
--- a/src/utstring.h
+++ b/src/utstring.h
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2008-2018, Troy D. Hanson   http://troydhanson.github.com/uthash/
+Copyright (c) 2008-2020, Troy D. Hanson   http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef UTSTRING_H
 #define UTSTRING_H
 
-#define UTSTRING_VERSION 2.1.0
+#define UTSTRING_VERSION 2.2.0
 
 #include 
 #include 
diff --git a/tests/hashscan.c b/tests/hashscan.c
index c487d9ce..f24a79e4 100644
--- a/tests/hashscan.c
+++ b/tests/hashscan.c
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2005-2018, Troy D. Hanson    http://troydhanson.github.com/uthash/
+Copyright (c) 2005-2020, Troy D. Hanson    http://troydhanson.github.com/uthash/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without