Move from Jansson to JV - interpreter loop

Passes tests, but leaks some memory.
This commit is contained in:
Stephen Dolan committed 2012-09-02 17:20:13 +01:00
1 parent 2cb9a6e61d
commit f72c5ffac0
7 files changed
+90 -103

No files matched your search

+5 -1
View File
@@ -83,10 +83,14 @@ static void* forkable_stack_peek_next(struct forkable_stack* s, void* top) {
}
}
static void forkable_stack_pop(struct forkable_stack* s) {
// Returns 1 if the object being popped can not be accessed again
// (i.e. was not saved with a fork)
static int forkable_stack_pop(struct forkable_stack* s) {
forkable_stack_check(s);
int finalpop = s->pos < s->savedlimit ? 1 : 0;
struct forkable_stack_header* elem = forkable_stack_peek(s);
s->pos = elem->next;
return finalpop;
}