comparison runtime/context.c @ 141:f2cb85c53ced

Fix Pause/Resume and rewrite Call Async in Rhope rather than C
author Mike Pavone <pavone@retrodev.com>
date Sat, 20 Nov 2010 17:48:22 -0500
parents c14698c512f1
children 7bbdc034e347
comparison
equal deleted inserted replaced
140:c14698c512f1 141:f2cb85c53ced
58 context * c = malloc(sizeof(context)); 58 context * c = malloc(sizeof(context));
59 c->stack_begin = new_stack(); 59 c->stack_begin = new_stack();
60 c->current_stack = c->stack_begin; 60 c->current_stack = c->stack_begin;
61 c->resume_cdata = c->runafter = c->transaction = NULL; 61 c->resume_cdata = c->runafter = c->transaction = NULL;
62 c->resumeable = 0; 62 c->resumeable = 0;
63 c->start_func = -1;
64 return c; 63 return c;
65 } 64 }
66 65
67 void free_context(context * c) 66 void free_context(context * c)
68 { 67 {