1. Enrico Franchi
  2. pyfiboheap

Commits

Enrico Franchi  committed 978202d

Temporarlily added tracing stuff.

  • Participants
  • Parent commits b1c381d
  • Branches default

Comments (0)

Files changed (1)

File src/fibomodule.c

View file
  • Ignore whitespace
     }
 
     it->counter--;
+
     stack_pop(item_node, it->stack);
+    printf("%ul - %p\n", it->counter, item_node);
     assert(item_node != NULL);
     item = item_node->value;
     Py_INCREF(item);
     if(item_node->next != &it->tree->root) {
+        printf("from %p inserting %p\n", item_node, item_node->next);
         stack_push(item_node->next, it->stack);
     }
     if(item_node->child != NULL) {
         //check me
+        printf("from %p inserting %p\n", item_node, item_node->child);
         stack_push(item_node->child, it->stack);
     }
     return item;