Mercurial > repos > rhope
comparison runtime/context.c @ 139:a68e6828d896
Global stores and transactions are working. Definately leaks memory on retries. Probably a fair number of bugs to work out. However, a basic test program works.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 19 Nov 2010 04:04:14 -0500 |
parents | d1569087348f |
children | c14698c512f1 |
comparison
equal
deleted
inserted
replaced
138:1411de6050e1 | 139:a68e6828d896 |
---|---|
16 context * new_context() | 16 context * new_context() |
17 { | 17 { |
18 context * c = malloc(sizeof(context)); | 18 context * c = malloc(sizeof(context)); |
19 c->stack_begin = new_stack(); | 19 c->stack_begin = new_stack(); |
20 c->current_stack = c->stack_begin; | 20 c->current_stack = c->stack_begin; |
21 c->transaction = NULL; | |
21 return c; | 22 return c; |
22 } | 23 } |
23 | 24 |
24 void free_context(context * c) | 25 void free_context(context * c) |
25 { | 26 { |