diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1997-10-31 23:54:01 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1997-10-31 23:54:01 +0000 |
commit | f0f333f45536802923a359d930d1dcfd5b4589ea (patch) | |
tree | 6f746f4b9cda56e2432754d6816467676c601820 /x2p/hash.c | |
parent | 8ac853655d9b744749adcb9687c13d99cdd6e9fb (diff) | |
download | perl-f0f333f45536802923a359d930d1dcfd5b4589ea.tar.gz |
Further ANSI changes now builds and passes (most) tests
with gcc -x c++.
p4raw-id: //depot/ansiperl@196
Diffstat (limited to 'x2p/hash.c')
-rw-r--r-- | x2p/hash.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/x2p/hash.c b/x2p/hash.c index 5859eab470..9f6bbe9015 100644 --- a/x2p/hash.c +++ b/x2p/hash.c @@ -14,9 +14,7 @@ #include "util.h" STR * -hfetch(tb,key) -register HASH *tb; -char *key; +hfetch(register HASH *tb, char *key) { register char *s; register int i; @@ -42,10 +40,7 @@ char *key; } bool -hstore(tb,key,val) -register HASH *tb; -char *key; -STR *val; +hstore(register HASH *tb, char *key, STR *val) { register char *s; register int i; @@ -133,8 +128,7 @@ char *key; #endif void -hsplit(tb) -HASH *tb; +hsplit(HASH *tb) { int oldsize = tb->tbl_max + 1; register int newsize = oldsize * 2; @@ -171,7 +165,7 @@ HASH *tb; } HASH * -hnew() +hnew(void) { register HASH *tb = (HASH*)safemalloc(sizeof(HASH)); @@ -195,8 +189,7 @@ register HASH *tb; #endif int -hiterinit(tb) -register HASH *tb; +hiterinit(register HASH *tb) { tb->tbl_riter = -1; tb->tbl_eiter = Null(HENT*); @@ -204,8 +197,7 @@ register HASH *tb; } HENT * -hiternext(tb) -register HASH *tb; +hiternext(register HASH *tb) { register HENT *entry; @@ -228,15 +220,13 @@ register HASH *tb; } char * -hiterkey(entry) -register HENT *entry; +hiterkey(register HENT *entry) { return entry->hent_key; } STR * -hiterval(entry) -register HENT *entry; +hiterval(register HENT *entry) { return entry->hent_val; } |