summaryrefslogtreecommitdiff
path: root/colm/program.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-04-18 22:37:20 +0000
committerAdrian Thurston <thurston@complang.org>2013-04-18 22:37:20 +0000
commit9c724fd4745e1b62455bcfafcbfc42b25eaa8888 (patch)
treed440feb3a24d062e0a7a6aac7f81e0d3482c8eed /colm/program.c
parent47f0ae11f2cfddc3aa7f98c1eadb19df329b9d67 (diff)
downloadcolm-9c724fd4745e1b62455bcfafcbfc42b25eaa8888.tar.gz
added distinct func for setting the realm
Diffstat (limited to 'colm/program.c')
-rw-r--r--colm/program.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/colm/program.c b/colm/program.c
index 013d98ed..fc728344 100644
--- a/colm/program.c
+++ b/colm/program.c
@@ -179,13 +179,16 @@ Tree *colm_return_val( struct colm_program *prg )
return prg->returnVal;
}
-Program *colm_new_program( RuntimeData *rtd, long activeRealm )
+void colm_set_debug( Program *prg, long activeRealm )
+{
+ prg->activeRealm = activeRealm;
+}
+
+Program *colm_new_program( RuntimeData *rtd )
{
Program *prg = malloc(sizeof(Program));
memset( prg, 0, sizeof(Program) );
- prg->activeRealm = activeRealm;
-
assert( sizeof(Int) <= sizeof(Tree) );
assert( sizeof(Str) <= sizeof(Tree) );
assert( sizeof(Pointer) <= sizeof(Tree) );