comparison runtime/localpointers_fragment.c @ 186:ba35ab624ec2

Add support for raw C function output from C backend as well as an option to use Boehm-GC instead of reference counting
author Mike Pavone <pavone@retrodev.com>
date Fri, 07 Oct 2011 00:10:02 -0700
parents bac2c74801f0
children
comparison
equal deleted inserted replaced
185:4580c08fd4e8 186:ba35ab624ec2
1 #ifdef RAW_FUNC
2 rhope_func func_lookup[];
3 #else
1 ct = new_context(); 4 ct = new_context();
2 cdata = alloc_cdata(ct, NULL, callspace); 5 cdata = alloc_cdata(ct, NULL, callspace);
3 cdata->num_params = numparams; 6 cdata->num_params = numparams;
4 for(idx = 0; idx < numparams; ++idx) 7 for(idx = 0; idx < numparams; ++idx)
5 cdata->params[idx] = params[idx]; 8 cdata->params[idx] = params[idx];
6 cdata->func = END; 9 cdata->func = END;
7 DISPATCH 10 DISPATCH
11 #endif
8 12
13