diff options
author | Adrian Thurston <thurston@complang.org> | 2016-02-19 16:12:41 +0100 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2016-02-19 16:12:41 +0100 |
commit | 6dd6b970b79e89b165cfc86e30e127fecfe1212f (patch) | |
tree | 78c632f2d90eada3ab2dcf4499d6a0d1722fab8c /src/program.h | |
parent | 78ab04bcdc09256e11b0723932eba3e8c1d5c247 (diff) | |
download | colm-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/program.h')
-rw-r--r-- | src/program.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/program.h b/src/program.h index d39b4f4a..f3e63e4a 100644 --- a/src/program.h +++ b/src/program.h @@ -100,7 +100,13 @@ struct colm_sections void (*init_bindings)( struct pda_run *pda_run ); void (*pop_binding)( struct pda_run *pda_run, parse_tree_t *tree ); + tree_t **(*host_call)( program_t *prg, long code, tree_t **sp ); + + void (*commit_reduce_forward)( program_t *prg, tree_t **root, struct pda_run *pda_run, parse_tree_t *pt ); + long (*commit_union_sz)( int reducer ); void (*init_need)(); + int (*reducer_need_tok)( program_t *prg, struct pda_run *pda_run, int id ); + int (*reducer_need_ign)( program_t *prg, struct pda_run *pda_run ); }; struct heap_list |