WorkList::WorkList() {
head=(struct ListNode *) malloc(sizeof(struct ListNode));
tail=head;
+ head->next=0;
headoffset=0;
tailoffset=0;
}
head->next=(struct ListNode *)malloc(sizeof(struct ListNode));
headoffset=0;
head=head->next;
+ head->next=0;
}
head->data[headoffset++]=id;
head->data[headoffset++]=type;
if (cur->nextarray==0 &&
index==table->tailindex)
return 0;
- index++;
if (index==ARRAYSIZE) {
index=0;
cur=cur->nextarray;
- }
+ } else
+ index++;
}
if (cur->nodes[index].inuse)
return 1;
#!/bin/bash
-g++ -c SimpleHash.cc
-g++ -c tmap.cc
-g++ -c instrument.cc
-gcc -c libredblack/redblack.c
\ No newline at end of file
+g++ -g -c SimpleHash.cc
+g++ -g -c tmap.cc
+g++ -g -c instrument.cc
+gcc -g -c libredblack/redblack.c
+gcc -g -c stack.c
+g++ -g -c size.cc
\ No newline at end of file