summaryrefslogtreecommitdiff
path: root/colm/loadcolm.cc
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/loadcolm.cc
parent47f0ae11f2cfddc3aa7f98c1eadb19df329b9d67 (diff)
downloadcolm-9c724fd4745e1b62455bcfafcbfc42b25eaa8888.tar.gz
added distinct func for setting the realm
Diffstat (limited to 'colm/loadcolm.cc')
-rw-r--r--colm/loadcolm.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/colm/loadcolm.cc b/colm/loadcolm.cc
index 65c0ebfa..27f8cc79 100644
--- a/colm/loadcolm.cc
+++ b/colm/loadcolm.cc
@@ -635,7 +635,7 @@ struct LoadColm
argv[0] = file.data;
argv[1] = 0;
- colm_program *program = colm_new_program( &colm_object, 0 );
+ colm_program *program = colm_new_program( &colm_object );
colm_run_program( program, 1, argv );
/* Extract the parse tree. */
@@ -1904,7 +1904,8 @@ void LoadColm::go( long activeRealm )
argv[0] = inputFileName;
argv[1] = 0;
- colm_program *program = colm_new_program( &colm_object, activeRealm );
+ colm_program *program = colm_new_program( &colm_object );
+ colm_set_debug( program, activeRealm );
colm_run_program( program, 1, argv );
/* Extract the parse tree. */