summaryrefslogtreecommitdiffstats
path: root/lib/hash.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-01-04 16:39:09 +0000
committerBruno Haible <bruno@clisp.org>2001-01-04 16:39:09 +0000
commiteaf396d26252324da43cfc02edef4163af4c8f5a (patch)
tree9d1f659f740b89cf95cfe11728fc06b8844ffacb /lib/hash.h
parentb5b46b39517187905714bc8d00363e5af9f207ca (diff)
downloadexternal_gettext-eaf396d26252324da43cfc02edef4163af4c8f5a.zip
external_gettext-eaf396d26252324da43cfc02edef4163af4c8f5a.tar.gz
external_gettext-eaf396d26252324da43cfc02edef4163af4c8f5a.tar.bz2
Update the lib directory with new files from glibc-2.2, fetish utils etc.
Diffstat (limited to 'lib/hash.h')
-rw-r--r--lib/hash.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/hash.h b/lib/hash.h
index 238d6ca..c6ce3e0 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 2000 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -22,8 +22,8 @@
typedef struct hash_table
{
- unsigned long size;
- unsigned long filled;
+ unsigned long int size;
+ unsigned long int filled;
void *first;
void *table;
struct obstack mem_pool;
@@ -38,16 +38,19 @@ hash_table;
# endif
# endif
-int init_hash PARAMS ((hash_table *htab, unsigned long init_size));
-int delete_hash PARAMS ((hash_table *htab));
-int insert_entry PARAMS ((hash_table *htab, const char *key, size_t keylen,
- void *data));
-int find_entry PARAMS ((hash_table *htab, const char *key, size_t keylen,
- void **result));
+extern int init_hash PARAMS ((hash_table *htab, unsigned long int init_size));
+extern int delete_hash PARAMS ((hash_table *htab));
+extern int insert_entry PARAMS ((hash_table *htab,
+ const void *key, size_t keylen,
+ void *data));
+extern int find_entry PARAMS ((hash_table *htab,
+ const void *key, size_t keylen,
+ void **result));
-int iterate_table PARAMS ((hash_table *htab, void **ptr,
- const void **key, void **data));
+extern int iterate_table PARAMS ((hash_table *htab, void **ptr,
+ const void **key, size_t *keylen,
+ void **data));
-unsigned long next_prime PARAMS ((unsigned long seed));
+extern unsigned long int next_prime PARAMS ((unsigned long int seed));
#endif /* not _HASH_H */