summaryrefslogtreecommitdiff
path: root/src/ctinput.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-05-10 13:55:46 -0400
committerAdrian Thurston <thurston@complang.org>2015-05-10 13:55:46 -0400
commit26ba9ef6c965fed03f081054bdb11d212e55f311 (patch)
tree0da628ce54880121fe7af7b7b9cf5b0f2d30dee4 /src/ctinput.cc
parentbb0f6a3e4a9117674eb91eb1226bb1b692319c4b (diff)
downloadcolm-26ba9ef6c965fed03f081054bdb11d212e55f311.tar.gz
merged FsmRun and PdaRun into pda_run, eliminated typedef
Diffstat (limited to 'src/ctinput.cc')
-rw-r--r--src/ctinput.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ctinput.cc b/src/ctinput.cc
index 5ff8ddde..be856a9f 100644
--- a/src/ctinput.cc
+++ b/src/ctinput.cc
@@ -24,6 +24,7 @@
#include "input.h"
#include "debug.h"
#include "pool.h"
+#include "pdacodegen.h"
#include <iostream>
@@ -447,7 +448,7 @@ StreamFuncs replFuncs =
};
extern "C" void internalSendNamedLangEl( Program *prg, Tree **sp,
- PdaRun *pdaRun, FsmRun *fsmRun, StreamImpl *is )
+ pda_run *pdaRun, StreamImpl *is )
{
/* All three set by consumeLangEl. */
long bindId;
@@ -478,20 +479,20 @@ extern "C" void internalSendNamedLangEl( Program *prg, Tree **sp,
pdaRun->parseInput = parseTree;
}
-extern "C" void internalInitBindings( PdaRun *pdaRun )
+extern "C" void internalInitBindings( pda_run *pdaRun )
{
/* Bindings are indexed at 1. Need a no-binding. */
pdaRun->bindings = new Bindings;
pdaRun->bindings->push(0);
}
-void pushBinding( PdaRun *pdaRun, ParseTree *parseTree )
+void pushBinding( pda_run *pdaRun, ParseTree *parseTree )
{
/* If the item is bound then store it in the bindings array. */
pdaRun->bindings->push( parseTree );
}
-extern "C" void internalPopBinding( PdaRun *pdaRun, ParseTree *parseTree )
+extern "C" void internalPopBinding( pda_run *pdaRun, ParseTree *parseTree )
{
ParseTree *lastBound = pdaRun->bindings->top();
if ( lastBound == parseTree )