summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
committerTavian Barnes <tavianator@gmail.com>2010-07-31 21:26:29 -0600
commitfb9dcc629630fe77840574088412eeb12b8d7ddb (patch)
treebb6735fa053ee26b43c09455eccd20a19fb8b1b6 /dimension
parentdb019a2c4aa8a7bbfad0dd380717a1d6567d2e82 (diff)
downloaddimension-fb9dcc629630fe77840574088412eeb12b8d7ddb.tar.xz
Fix some -W{strict,missing}-prototypes warnings.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/parse.c14
-rw-r--r--dimension/parse.h4
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);