diff options
author | Adrian Thurston <thurston@complang.org> | 2013-04-18 22:37:20 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-04-18 22:37:20 +0000 |
commit | 9c724fd4745e1b62455bcfafcbfc42b25eaa8888 (patch) | |
tree | d440feb3a24d062e0a7a6aac7f81e0d3482c8eed /colm/colm.h | |
parent | 47f0ae11f2cfddc3aa7f98c1eadb19df329b9d67 (diff) | |
download | colm-9c724fd4745e1b62455bcfafcbfc42b25eaa8888.tar.gz |
added distinct func for setting the realm
Diffstat (limited to 'colm/colm.h')
-rw-r--r-- | colm/colm.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/colm/colm.h b/colm/colm.h index 13df281a..b83cd7a1 100644 --- a/colm/colm.h +++ b/colm/colm.h @@ -12,10 +12,9 @@ struct colm_sections; struct colm_tree; struct colm_location; -struct colm_program *colm_new_program( struct colm_sections *rtd, long debug_realm ); -void colm_run_program( struct colm_program *prg, int argc, const char **argv ); -struct colm_tree *colm_run_func( struct colm_program *prg, int frame_id, const char **params, int param_count ); -int colm_delete_program( struct colm_program *prg ); +/* + * Interface + */ struct colm_print_args { @@ -51,6 +50,16 @@ struct colm_tree *colm_get_repeat_next( struct colm_tree *tree ); struct colm_tree *colm_get_repeat_val( struct colm_tree *tree ); struct colm_location *colm_find_location( struct colm_program *prg, struct colm_tree *tree ); +/* + * Primary interface. + */ + +struct colm_program *colm_new_program( struct colm_sections *rtd ); +void colm_set_debug( struct colm_program *prg, long active_realm ); +void colm_run_program( struct colm_program *prg, int argc, const char **argv ); +struct colm_tree *colm_run_func( struct colm_program *prg, int frame_id, const char **params, int param_count ); +int colm_delete_program( struct colm_program *prg ); + #ifdef __cplusplus } #endif |