aboutsummaryrefslogtreecommitdiff
path: root/linked_list.inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'linked_list.inc.h')
-rw-r--r--linked_list.inc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linked_list.inc.h b/linked_list.inc.h
index e20c6339..11c7844c 100644
--- a/linked_list.inc.h
+++ b/linked_list.inc.h
@@ -2,6 +2,9 @@
// #error "Set TYPE before including this file"
// #else
+#include <stdio.h>
+#include "err.h"
+
// INIT_F ( LLIST(TYPE) ) {
template <class T>
llist<T>::llist () {
@@ -169,8 +172,10 @@ int llist<T>::reset () {
* Manual looping rather than itterators since we destroyed the
* loop variable.
*/
+ fprintf(stderr, _RED "head = %p, tail = %p\n" _RESET, this->head, this->tail);
while (link != this->tail) {
next = link->after;
+ fprintf(stderr, _RED "link = %p\n" _RESET, link);
// FFREE(LINK(TYPE), link);
delete link;
link = next;