diff --git a/utlist.h b/utlist.h index 6230a67..e48ff36 100644 --- a/utlist.h +++ b/utlist.h @@ -26,8 +26,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define UTLIST_VERSION 2.3.0 -#include - /* * This file contains macros to manipulate singly and doubly-linked lists. * @@ -445,9 +443,6 @@ do { #define LL_REPLACE_ELEM2(head, el, add, next) \ do { \ LDECLTYPE(head) _tmp; \ - assert((head) != NULL); \ - assert((el) != NULL); \ - assert((add) != NULL); \ (add)->next = (el)->next; \ if ((head) == (el)) { \ (head) = (add); \ @@ -469,8 +464,6 @@ do { do { \ if (el) { \ LDECLTYPE(head) _tmp; \ - assert((head) != NULL); \ - assert((add) != NULL); \ (add)->next = (el); \ if ((head) == (el)) { \ (head) = (add); \ @@ -494,8 +487,6 @@ do { #define LL_APPEND_ELEM2(head, el, add, next) \ do { \ if (el) { \ - assert((head) != NULL); \ - assert((add) != NULL); \ (add)->next = (el)->next; \ (el)->next = (add); \ } else { \ @@ -573,9 +564,6 @@ do { #undef LL_REPLACE_ELEM2 #define LL_REPLACE_ELEM2(head, el, add, next) \ do { \ - assert((head) != NULL); \ - assert((el) != NULL); \ - assert((add) != NULL); \ if ((head) == (el)) { \ (head) = (add); \ } else { \ @@ -594,8 +582,6 @@ do { #define LL_PREPEND_ELEM2(head, el, add, next) \ do { \ if (el) { \ - assert((head) != NULL); \ - assert((add) != NULL); \ if ((head) == (el)) { \ (head) = (add); \ } else { \ @@ -705,8 +691,6 @@ do { #define DL_DELETE2(head,del,prev,next) \ do { \ - assert((head) != NULL); \ - assert((del)->prev != NULL); \ if ((del)->prev == (del)) { \ (head)=NULL; \ } else if ((del)==(head)) { \ @@ -752,9 +736,6 @@ do { #define DL_REPLACE_ELEM2(head, el, add, prev, next) \ do { \ - assert((head) != NULL); \ - assert((el) != NULL); \ - assert((add) != NULL); \ if ((head) == (el)) { \ (head) = (add); \ (add)->next = (el)->next; \ @@ -782,8 +763,6 @@ do { #define DL_PREPEND_ELEM2(head, el, add, prev, next) \ do { \ if (el) { \ - assert((head) != NULL); \ - assert((add) != NULL); \ (add)->next = (el); \ (add)->prev = (el)->prev; \ (el)->prev = (add); \ @@ -803,8 +782,6 @@ do { #define DL_APPEND_ELEM2(head, el, add, prev, next) \ do { \ if (el) { \ - assert((head) != NULL); \ - assert((add) != NULL); \ (add)->next = (el)->next; \ (add)->prev = (el); \ (el)->next = (add); \ @@ -982,9 +959,6 @@ do { #define CDL_REPLACE_ELEM2(head, el, add, prev, next) \ do { \ - assert((head) != NULL); \ - assert((el) != NULL); \ - assert((add) != NULL); \ if ((el)->next == (el)) { \ (add)->next = (add); \ (add)->prev = (add); \ @@ -1006,8 +980,6 @@ do { #define CDL_PREPEND_ELEM2(head, el, add, prev, next) \ do { \ if (el) { \ - assert((head) != NULL); \ - assert((add) != NULL); \ (add)->next = (el); \ (add)->prev = (el)->prev; \ (el)->prev = (add); \ @@ -1026,8 +998,6 @@ do { #define CDL_APPEND_ELEM2(head, el, add, prev, next) \ do { \ if (el) { \ - assert((head) != NULL); \ - assert((add) != NULL); \ (add)->next = (el)->next; \ (add)->prev = (el); \ (el)->next = (add); \