This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
'Unknown PerlIO layer "encoding"...' message
[perl5.git] / x2p / hash.h
index bd65b8d..ee5be5b 100644 (file)
@@ -1,23 +1,16 @@
-/* $RCSfile: hash.h,v $$Revision: 4.0.1.1 $$Date: 91/06/07 12:16:04 $
+/*    hash.h
  *
- *    Copyright (c) 1991, Larry Wall
+ *    Copyright (C) 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2005
+ *    by Larry Wall and others
  *
  *    You may distribute under the terms of either the GNU General Public
  *    License or the Artistic License, as specified in the README file.
- *
- * $Log:       hash.h,v $
- * Revision 4.0.1.1  91/06/07  12:16:04  lwall
- * patch4: new copyright notice
- * 
- * Revision 4.0  91/03/20  01:57:53  lwall
- * 4.0 baseline.
- * 
  */
 
 #define FILLPCT 60             /* don't make greater than 99 */
 
 #ifdef DOINIT
-char coeff[] = {
+EXTERN_C char const coeff[] = {
                61,59,53,47,43,41,37,31,29,23,17,13,11,7,3,1,
                61,59,53,47,43,41,37,31,29,23,17,13,11,7,3,1,
                61,59,53,47,43,41,37,31,29,23,17,13,11,7,3,1,
@@ -27,7 +20,7 @@ char coeff[] = {
                61,59,53,47,43,41,37,31,29,23,17,13,11,7,3,1,
                61,59,53,47,43,41,37,31,29,23,17,13,11,7,3,1};
 #else
-extern char coeff[];
+EXTERN_C const char coeff[];
 #endif
 
 typedef struct hentry HENT;
@@ -47,11 +40,8 @@ struct htbl {
     HENT       *tbl_eiter;     /* current entry of iterator */
 };
 
-STR *hfetch();
-bool hstore();
-bool hdelete();
-HASH *hnew();
-int hiterinit();
-HENT *hiternext();
-char *hiterkey();
-STR *hiterval();
+STR * hfetch ( HASH *tb, char *key );
+int hiterinit ( HASH *tb );
+HASH * hnew ( void );
+void hsplit ( HASH *tb );
+bool hstore ( HASH *tb, char *key, STR *val );