summaryrefslogtreecommitdiffstats
path: root/forkable_stack.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-03 20:00:36 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-03 20:02:02 +0000
commit5f6a95c7b574c6d0f52e62e2405c550606a5ce75 (patch)
treeb31fc40e29095972db981ed9dc18429dd4aabce7 /forkable_stack.h
parentfadeb66365cb8da2cddf3993ad139736922852ae (diff)
General cleanup - rename a few things, delete dead code.
Diffstat (limited to 'forkable_stack.h')
-rw-r--r--forkable_stack.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/forkable_stack.h b/forkable_stack.h
index 5bfad8a9..a94a1ec3 100644
--- a/forkable_stack.h
+++ b/forkable_stack.h
@@ -15,7 +15,6 @@ struct forkable_stack_header {
struct forkable_stack {
// Stack grows down from stk+length
-
char* stk;
// stk+length is just past end of allocated area
@@ -61,7 +60,6 @@ static void* forkable_stack_push(struct forkable_stack* s, size_t sz_size) {
forkable_stack_check(s);
int curr = s->pos < s->savedlimit ? s->pos : s->savedlimit;
if (curr - size < 0) {
- //assert(0);
int oldlen = s->length;
s->length = (size + oldlen + 1024) * 2;
s->stk = realloc(s->stk, s->length);