summaryrefslogtreecommitdiff
path: root/src/compiler.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-07-31 19:25:34 +0000
committerAdrian Thurston <thurston@complang.org>2012-07-31 19:25:34 +0000
commit08343d0ee997c788a720a4c9756161dc8f881b15 (patch)
tree697fce2e94d94607bef74f87177a65582cac92b2 /src/compiler.cc
parentd5a996a46e9244c363f93d346ae532ded759fccf (diff)
downloadcolm-08343d0ee997c788a720a4c9756161dc8f881b15.tar.gz
pass program arguments to colmRunProgram instead of colmNewProgram.
Idea with this is to make it possible to re-use an allocated program for more than one invocation.
Diffstat (limited to 'src/compiler.cc')
-rw-r--r--src/compiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.cc b/src/compiler.cc
index e3676768..1e0c8c7f 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1283,7 +1283,7 @@ void Compiler::initEmptyScanners()
void Compiler::parsePatterns()
{
- Program *prg = colmNewProgram( runtimeData, 0, 0 );
+ Program *prg = colmNewProgram( runtimeData );
/* Turn off context-dependent parsing. */
prg->ctxDepParsing = 0;