comparison runtime/context.h @ 53:70af7fa155d0

Cleaned up some C warnings and added a simple compile script
author Mike Pavone <pavone@retrodev.com>
date Thu, 29 Apr 2010 04:32:54 +0000
parents 079200bc3e75
children 04baa003de5a
comparison
equal deleted inserted replaced
52:079200bc3e75 53:70af7fa155d0
14 char data[STACK_CHUNK_SIZE]; 14 char data[STACK_CHUNK_SIZE];
15 } stackchunk; 15 } stackchunk;
16 16
17 typedef struct { 17 typedef struct {
18 rhope_func func; 18 rhope_func func;
19 struct calldata *params; 19 calldata *params;
20 } unwind_cell; 20 } unwind_cell;
21 21
22 typedef struct context { 22 typedef struct context {
23 stackchunk *stack_begin; 23 stackchunk *stack_begin;
24 stackchunk *current_stack; 24 stackchunk *current_stack;
26 } context; 26 } context;
27 27
28 stackchunk * new_stack(); 28 stackchunk * new_stack();
29 context * new_context(); 29 context * new_context();
30 void * alloc_stack(context * ct, uint32_t size); 30 void * alloc_stack(context * ct, uint32_t size);
31 struct calldata * alloc_cdata(context * ct, uint32_t num_params); 31 calldata * alloc_cdata(context * ct, uint32_t num_params);
32 void free_stack(context * ct, void * data); 32 void free_stack(context * ct, void * data);
33 void free_context(context * c); 33 void free_context(context * c);
34 #endif //_CONTEXT_H_ 34 #endif //_CONTEXT_H_