diff options
Diffstat (limited to 'dimension')
-rw-r--r-- | dimension/parse.c | 14 | ||||
-rw-r--r-- | dimension/parse.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/dimension/parse.c b/dimension/parse.c index 7b33b1d..93edb84 100644 --- a/dimension/parse.c +++ b/dimension/parse.c @@ -35,7 +35,7 @@ typedef struct dmnsn_patricia_trie { dmnsn_astnode value; } dmnsn_patricia_trie; -void +static void dmnsn_delete_patricia_trie(dmnsn_patricia_trie *trie) { if (trie) { @@ -55,8 +55,8 @@ dmnsn_delete_patricia_trie(dmnsn_patricia_trie *trie) } } -dmnsn_patricia_trie * -dmnsn_new_patricia_trie() +static dmnsn_patricia_trie * +dmnsn_new_patricia_trie(void) { dmnsn_patricia_trie *trie = dmnsn_malloc(sizeof(dmnsn_patricia_trie)); trie->prefix = dmnsn_strdup(""); @@ -65,7 +65,7 @@ dmnsn_new_patricia_trie() return trie; } -void +static void dmnsn_patricia_insert(dmnsn_patricia_trie *trie, const char *id, dmnsn_astnode value) { @@ -147,7 +147,7 @@ dmnsn_patricia_insert(dmnsn_patricia_trie *trie, } } -bool +static bool dmnsn_patricia_remove(dmnsn_patricia_trie *trie, const char *id) { /* @@ -190,7 +190,7 @@ dmnsn_patricia_remove(dmnsn_patricia_trie *trie, const char *id) return false; } -dmnsn_astnode * +static dmnsn_astnode * dmnsn_patricia_find(dmnsn_patricia_trie *trie, const char *id) { /* @@ -969,7 +969,7 @@ dmnsn_eval_binary(dmnsn_astnode astnode, dmnsn_symbol_table *symtable) dmnsn_delete_astnode(lhs); dmnsn_delete_astnode(rhs); return ret; - } + } switch (astnode.type) { case DMNSN_AST_EQUAL: diff --git a/dimension/parse.h b/dimension/parse.h index c47363f..e81f76e 100644 --- a/dimension/parse.h +++ b/dimension/parse.h @@ -199,7 +199,7 @@ struct dmnsn_astnode { typedef dmnsn_array dmnsn_astree; -dmnsn_astnode dmnsn_new_ast_array(); +dmnsn_astnode dmnsn_new_ast_array(void); dmnsn_astnode dmnsn_new_ast_integer(long value); dmnsn_astnode dmnsn_new_ast_float(double value); dmnsn_astnode dmnsn_new_ast_ivector(long x, long y, long z, long f, long t); @@ -222,7 +222,7 @@ const char *dmnsn_astnode_string(dmnsn_astnode_type astnode_type); typedef dmnsn_array dmnsn_symbol_table; -dmnsn_symbol_table *dmnsn_new_symbol_table(); +dmnsn_symbol_table *dmnsn_new_symbol_table(void); void dmnsn_delete_symbol_table(dmnsn_symbol_table *symtable); |