diff options
author | Adrian Thurston <thurston@colm.net> | 2016-08-01 14:24:09 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2016-08-01 14:24:09 -0400 |
commit | 8e24b1816296f2897001fc3f699e067135222f99 (patch) | |
tree | c8f2ffde453f211414779075683aee8f4361877e /src/program.c | |
parent | 63d638351a99b65ae50a75fe9bc3f9669a447990 (diff) | |
download | colm-8e24b1816296f2897001fc3f699e067135222f99.tar.gz |
added a function for retrieving the reducer context
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 d941cb31..2949ad81 100644 --- a/src/program.c +++ b/src/program.c @@ -231,6 +231,11 @@ static void colm_clear_heap( program_t *prg, tree_t **sp ) } } +void *colm_get_reduce_ctx( struct colm_program *prg ) +{ + return prg->red_ctx; +} + void colm_set_reduce_ctx( struct colm_program *prg, void *ctx ) { prg->red_ctx = ctx; |