diff options
author | Adrian Thurston <thurston@complang.org> | 2015-11-05 21:44:00 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-11-05 21:44:00 -0500 |
commit | 61fea2948a63f7968e2d9f6508a640afe83421ca (patch) | |
tree | 203066627df83b5dff0d60803682ae66e740e429 /src/program.c | |
parent | 883797b32e3a4915bf81f801946cda6798e019c9 (diff) | |
download | colm-61fea2948a63f7968e2d9f6508a640afe83421ca.tar.gz |
stash reduction class in program
Diffstat (limited to 'src/program.c')
-rw-r--r-- | src/program.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/program.c b/src/program.c index 3958da9d..0f7396d8 100644 --- a/src/program.c +++ b/src/program.c @@ -226,6 +226,11 @@ static void colm_clear_heap( program_t *prg, tree_t **sp ) } } +void colm_set_reduce_ctx( struct colm_program *prg, void *ctx ) +{ + prg->red_ctx = ctx; +} + int colm_delete_program( program_t *prg ) { tree_t **sp = prg->stack_root; |