]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - locale/programs/simple-hash.h
Update.
[thirdparty/glibc.git] / locale / programs / simple-hash.h
index f26790b21bc785e5fe2108bd1089548e396c7a47..b72e3acaca6b8f50ac6d1c347afdb4e2b07d1964 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
+   Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
 
    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
@@ -24,8 +24,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;
@@ -33,18 +33,18 @@ typedef struct hash_table
 hash_table;
 
 
-int init_hash __P ((hash_table *htab, unsigned long int init_size));
-int delete_hash __P ((hash_table *htab));
-int insert_entry __P ((hash_table *htab, const void *key, size_t keylen,
-                      void *data));
-int find_entry __P ((hash_table *htab, const void *key, size_t keylen,
-                    void **result));
-int set_entry __P ((hash_table *htab, const void *key, size_t keylen,
-                   void *newval));
+extern int init_hash __P ((hash_table *htab, unsigned long int init_size));
+extern int delete_hash __P ((hash_table *htab));
+extern int insert_entry __P ((hash_table *htab, const void *key, size_t keylen,
+                             void *data));
+extern int find_entry __P ((hash_table *htab, const void *key, size_t keylen,
+                           void **result));
+extern int set_entry __P ((hash_table *htab, const void *key, size_t keylen,
+                          void *newval));
 
-int iterate_table __P ((hash_table *htab, void **ptr,
-                       const void **key, size_t *keylen, void **data));
+extern int iterate_table __P ((hash_table *htab, void **ptr,
+                              const void **key, size_t *keylen, void **data));
 
-unsigned long next_prime __P ((unsigned long int seed));
+extern unsigned long int next_prime __P ((unsigned long int seed));
 
 #endif /* simple-hash.h */