diff options
author | Adrian Thurston <thurston@complang.org> | 2015-05-15 12:22:51 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-05-15 12:22:51 -0400 |
commit | c98d2e9b47091c12deb747e111f7f1cd05a1f937 (patch) | |
tree | 5decdd801287425e2b27c285422e8c9da3b15415 /src/struct.h | |
parent | b05674c0aa0a63ae984fc8f8204bdb09d5e1dd9e (diff) | |
download | colm-c98d2e9b47091c12deb747e111f7f1cd05a1f937.tar.gz |
naming convention improvements
Diffstat (limited to 'src/struct.h')
-rw-r--r-- | src/struct.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/struct.h b/src/struct.h index 44e94eba..a4296b19 100644 --- a/src/struct.h +++ b/src/struct.h @@ -5,9 +5,6 @@ extern "C" { #endif - -typedef struct _StreamImpl StreamImpl; - typedef void (*colm_destructor_t)( struct colm_program *prg, Tree **sp, struct colm_struct *s ); @@ -49,7 +46,7 @@ typedef struct colm_stream void *buffer[8]; - StreamImpl *impl; + struct stream_impl *impl; } Stream; #define COLM_LIST_EL_SIZE 2 @@ -134,18 +131,18 @@ Stream *colm_stream_new_struct( struct colm_program *prg ); List *colm_list_new( struct colm_program *prg ); struct colm_struct *colm_list_get( struct colm_program *prg, List *list, - Word genId, Word field ); + word_t genId, word_t field ); struct colm_struct *colm_list_el_get( struct colm_program *prg, - ListEl *listEl, Word genId, Word field ); + ListEl *listEl, word_t genId, word_t field ); ListEl *colm_list_detach_head( List *list ); ListEl *colm_list_detach_tail( List *list ); long colm_list_length( List *list ); Map *colm_map_new( struct colm_program *prg ); struct colm_struct *colm_map_el_get( struct colm_program *prg, - MapEl *mapEl, Word genId, Word field ); + MapEl *mapEl, word_t genId, word_t field ); struct colm_struct *colm_map_get( struct colm_program *prg, Map *map, - Word genId, Word field ); + word_t genId, word_t field ); struct colm_struct *colm_construct_generic( struct colm_program *prg, long genericId ); |