#include "list.h"
#include "miscutil.h"
+#ifndef NDEBUG
static int list_is_valid (const struct list *the_list);
-
+#endif
/*********************************************************************
*
}
+#ifndef NDEBUG
/*********************************************************************
*
* Function : list_is_valid
*********************************************************************/
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;
}
return (the_list->last == last_entry);
-#else
- return 1;
-#endif
+
}
+#endif /* ndef NDEBUG */
+
/*********************************************************************
*