aboutsummaryrefslogtreecommitdiff
path: root/linked_list.inc.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 11:30:36 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 11:30:36 +0100
commit8596f5307ce55ff362d9d22f0b1310f341b0b1e7 (patch)
tree08e8b924d528b29c5adfba505b8006703d479886 /linked_list.inc.h
parentrest (diff)
downloadcalp-8596f5307ce55ff362d9d22f0b1310f341b0b1e7.tar.gz
calp-8596f5307ce55ff362d9d22f0b1310f341b0b1e7.tar.xz
Something.
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;