From 26ba9ef6c965fed03f081054bdb11d212e55f311 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sun, 10 May 2015 13:55:46 -0400 Subject: merged FsmRun and PdaRun into pda_run, eliminated typedef --- src/ctinput.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ctinput.cc') 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 @@ -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 ) -- cgit v1.2.1