Mercurial > repos > rhope
diff runtime/main_start.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 | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/runtime/main_start.c Fri Oct 07 00:10:02 2011 -0700 @@ -0,0 +1,16 @@ +#ifdef RAW_FUNC +#define rhope(func, io, inputs, callspace) ret = func_lookup[func](inputs, io); inout[0] = ret.retvals[0] +#endif + +int main(int argc, char **argv) +{ + blueprint * bp; + int numret; + int idx; +#ifdef RAW_FUNC + returntype ret; +#endif + object * inout[3]; + register_builtin_types(); + register_type_byid(TYPE_MUTABLEGLOBAL, sizeof(mutable_object)-sizeof(object), NULL, NULL, NULL); +