summaryrefslogtreecommitdiff
path: root/src/pdarun.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-11-05 17:40:35 -0500
committerAdrian Thurston <thurston@complang.org>2015-11-05 17:40:35 -0500
commit883797b32e3a4915bf81f801946cda6798e019c9 (patch)
tree4f4ed88b5ab78ef307f3219b7c54a5660490ae69 /src/pdarun.c
parent80b9fc661abe6f37853bc12889f0443a1d6c65a9 (diff)
downloadcolm-883797b32e3a4915bf81f801946cda6798e019c9.tar.gz
split reducers into their own class
Previously selected with a runtime int. Using reduction name as the class name.
Diffstat (limited to 'src/pdarun.c')
-rw-r--r--src/pdarun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdarun.c b/src/pdarun.c
index a0978165..4f2befd4 100644
--- a/src/pdarun.c
+++ b/src/pdarun.c
@@ -1201,7 +1201,8 @@ void colm_pda_init( program_t *prg, struct pda_run *pda_run, struct pda_tables *
pda_run->reducer = reducer;
if ( reducer ) {
- init_pool_alloc( &pda_run->local_pool, sizeof(parse_tree_t) + commit_union_sz() );
+ init_pool_alloc( &pda_run->local_pool, sizeof(parse_tree_t) +
+ commit_union_sz(reducer) );
pda_run->parse_tree_pool = &pda_run->local_pool;
}
else {