summaryrefslogtreecommitdiff
path: root/x2p/hash.c
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafcol.lafayette.edu>1995-01-18 02:37:01 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1995-01-18 02:37:01 +0000
commit9c8d0b29b7bd1493cc1d95591b17902820e5579c (patch)
treef8671d758a3a5d07d4fef72c609650aa9af8f7e1 /x2p/hash.c
parentf4cb4c40de81ad9c5a8e775c2298ec5a52130124 (diff)
downloadperl-9c8d0b29b7bd1493cc1d95591b17902820e5579c.tar.gz
perl5.000 patch.0e: fix various non-broken things in the x2p/ directory
This patch fixes various non-broken things in the x2p/ directory. Mostly, I've supplied function prototypes to satisfy particularly picky compilers. I've also updated Makefile.SH to know that the byacc-generated a2p.c is now included with the distribution so that we no longer need to go looking for yacc/bison/byacc and deal with various library issues or command line options to support those various compiler compilers. I've included a2p.c generated by byacc-1.9. Larry, feel free to use your own from byacc-1.8 instead.
Diffstat (limited to 'x2p/hash.c')
-rw-r--r--x2p/hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/x2p/hash.c b/x2p/hash.c
index b910af603e..58236f49e4 100644
--- a/x2p/hash.c
+++ b/x2p/hash.c
@@ -10,9 +10,8 @@
#include <stdio.h>
#include "EXTERN.h"
-#include "handy.h"
-#include "util.h"
#include "a2p.h"
+#include "util.h"
STR *
hfetch(tb,key)
@@ -71,7 +70,7 @@ STR *val;
if (strNE(entry->hent_key,key)) /* is this it? */
continue;
/*NOSTRICT*/
- safefree((char*)entry->hent_val);
+ Safefree(entry->hent_val);
entry->hent_val = val;
return TRUE;
}
@@ -133,6 +132,7 @@ char *key;
}
#endif
+void
hsplit(tb)
HASH *tb;
{
@@ -194,6 +194,7 @@ register HASH *tb;
}
#endif
+int
hiterinit(tb)
register HASH *tb;
{