summaryrefslogtreecommitdiff
path: root/src/pdarun.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2016-02-19 16:12:41 +0100
committerAdrian Thurston <thurston@complang.org>2016-02-19 16:12:41 +0100
commit6dd6b970b79e89b165cfc86e30e127fecfe1212f (patch)
tree78c632f2d90eada3ab2dcf4499d6a0d1722fab8c /src/pdarun.c
parent78ab04bcdc09256e11b0723932eba3e8c1d5c247 (diff)
downloadcolm-6dd6b970b79e89b165cfc86e30e127fecfe1212f.tar.gz
host adapters now have unique names are are accessed with func pointers
This eliminates symbol collisions present when linking multiple colm programs into the same executable.
Diffstat (limited to 'src/pdarun.c')
-rw-r--r--src/pdarun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdarun.c b/src/pdarun.c
index 91a0e8df..682a0ed3 100644
--- a/src/pdarun.c
+++ b/src/pdarun.c
@@ -877,7 +877,7 @@ static head_t *peek_match( program_t *prg, struct pda_run *pda_run, struct strea
static void send_ignore( program_t *prg, tree_t **sp,
struct pda_run *pda_run, struct stream_impl *is, long id )
{
- if ( reducer_need_ign( prg, pda_run ) == RN_NONE ) {
+ if ( prg->rtd->reducer_need_ign( prg, pda_run ) == RN_NONE ) {
consume_match( prg, sp, pda_run, is );
}
else {
@@ -905,7 +905,7 @@ static void send_token( program_t *prg, tree_t **sp,
/* Make the token data. */
head_t *tokdata = 0;
- int rn = reducer_need_tok( prg, pda_run, id );
+ int rn = prg->rtd->reducer_need_tok( prg, pda_run, id );
switch ( rn ) {
case RN_NONE:
@@ -1314,7 +1314,7 @@ void colm_pda_init( program_t *prg, struct pda_run *pda_run, struct pda_tables *
if ( reducer ) {
init_pool_alloc( &pda_run->local_pool, sizeof(parse_tree_t) +
- commit_union_sz(reducer) );
+ prg->rtd->commit_union_sz(reducer) );
pda_run->parse_tree_pool = &pda_run->local_pool;
}
else {