diff runtime/context.h @ 56:d2f9b0a9403d

Initial experiment with goto and switch
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Oct 2009 01:52:38 -0400
parents 8d74ef7fa357
children 04baa003de5a
line wrap: on
line diff
--- a/runtime/context.h	Tue Oct 06 23:13:47 2009 -0400
+++ b/runtime/context.h	Thu Oct 08 01:52:38 2009 -0400
@@ -14,20 +14,14 @@
 	char      data[STACK_CHUNK_SIZE];
 } stackchunk;
 
-typedef struct {
-	rhope_func       func;
-	struct calldata  *params;
-} unwind_cell;
-
 typedef struct context {
 	stackchunk   *stack_begin;
 	stackchunk   *current_stack;
-	unwind_cell  *unwind;
 } context;
 
 stackchunk * new_stack();
 context * new_context();
 void * alloc_stack(context * ct, uint32_t size);
-struct calldata * alloc_cdata(context * ct, uint32_t num_params);
+struct calldata * alloc_cdata(context * ct, struct calldata * lastframe, uint32_t num_params);
 void free_stack(context * ct, void * data);
 #endif //_CONTEXT_H_