X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=list.c;h=a2d7ff6bc5758d30a4c4b9f02096fff10af73817;hp=89bb0102ea0ddf34d56cf33ed1e330d1478b292b;hb=c206d23359fbd4db0fdaa4d2e153b6206bebdbd3;hpb=232652cee900b4014c23e12ee4400d1f0abd6c8d diff --git a/list.c b/list.c index 89bb0102..a2d7ff6b 100644 --- a/list.c +++ b/list.c @@ -45,7 +45,7 @@ #endif #include -#if !defined(_WIN32) && !defined(__OS2__) +#if !defined(_WIN32) #include #endif @@ -55,8 +55,9 @@ #include "list.h" #include "miscutil.h" +#ifndef NDEBUG static int list_is_valid (const struct list *the_list); - +#endif /********************************************************************* * @@ -123,6 +124,7 @@ void destroy_list (struct list *the_list) } +#ifndef NDEBUG /********************************************************************* * * Function : list_is_valid @@ -142,11 +144,6 @@ void destroy_list (struct list *the_list) *********************************************************************/ static int list_is_valid (const struct list *the_list) { - /* - * If you don't want this check, just change the line below - * from "#if 1" to "#if 0". - */ -#if 1 const struct list_entry *cur_entry; const struct list_entry *last_entry = NULL; int entry = 0; @@ -199,10 +196,10 @@ static int list_is_valid (const struct list *the_list) } return (the_list->last == last_entry); -#else - return 1; -#endif + } +#endif /* ndef NDEBUG */ + /********************************************************************* *