diff options
author | Adrian Thurston <thurston@complang.org> | 2012-07-31 19:25:34 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-07-31 19:25:34 +0000 |
commit | 08343d0ee997c788a720a4c9756161dc8f881b15 (patch) | |
tree | 697fce2e94d94607bef74f87177a65582cac92b2 /src/compiler.cc | |
parent | d5a996a46e9244c363f93d346ae532ded759fccf (diff) | |
download | colm-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.cc | 2 |
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; |