summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-04 02:12:52 +0000
committerPaul Smith <psmith@gnu.org>2002-10-04 02:12:52 +0000
commit9dc79463a9a5601439126d124e99777ebe432874 (patch)
tree2bad05769aae70786f1c5c846cb0443eb9a7aaed /function.c
parent1d3dfeb74b47803559e0b5eaa886ebb1ad9e3e3f (diff)
downloadgunmake-9dc79463a9a5601439126d124e99777ebe432874.tar.gz
Fix K&R-isms found on SunOS 4.1.4 builds.
Diffstat (limited to 'function.c')
-rw-r--r--function.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/function.c b/function.c
index d773735..cf646d6 100644
--- a/function.c
+++ b/function.c
@@ -41,21 +41,25 @@ struct function_table_entry
};
static unsigned long
-function_table_entry_hash_1 (void const *keyv)
+function_table_entry_hash_1 (keyv)
+ const void *keyv;
{
struct function_table_entry const *key = (struct function_table_entry const *) keyv;
return_STRING_N_HASH_1 (key->name, key->len);
}
static unsigned long
-function_table_entry_hash_2 (void const *keyv)
+function_table_entry_hash_2 (keyv)
+ const void *keyv;
{
struct function_table_entry const *key = (struct function_table_entry const *) keyv;
return_STRING_N_HASH_2 (key->name, key->len);
}
static int
-function_table_entry_hash_cmp (void const *xv, void const *yv)
+function_table_entry_hash_cmp (xv, yv)
+ const void *xv;
+ const void *yv;
{
struct function_table_entry const *x = (struct function_table_entry const *) xv;
struct function_table_entry const *y = (struct function_table_entry const *) yv;
@@ -896,19 +900,23 @@ struct a_word
};
static unsigned long
-a_word_hash_1 (void const *key)
+a_word_hash_1 (key)
+ const void *key;
{
return_STRING_HASH_1 (((struct a_word const *) key)->str);
}
static unsigned long
-a_word_hash_2 (void const *key)
+a_word_hash_2 (key)
+ const void *key;
{
return_STRING_HASH_2 (((struct a_word const *) key)->str);
}
static int
-a_word_hash_cmp (void const *x, void const *y)
+a_word_hash_cmp (x, y)
+ const void *x;
+ const void *y;
{
int result = ((struct a_word const *) x)->length - ((struct a_word const *) y)->length;
if (result)