aboutsummaryrefslogtreecommitdiff
path: root/libihash/priv.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-15 09:29:26 +0000
committerRoland McGrath <roland@gnu.org>2001-08-15 09:29:26 +0000
commit175fa7701ded3785c31e82581f74e2fd32db7330 (patch)
tree3f803cb1d0a82472400823a51d74ff5107dcdc72 /libihash/priv.h
parent0642002d933b3b135f9af076f862ad1504c59d4a (diff)
downloadhurd-175fa7701ded3785c31e82581f74e2fd32db7330.tar.gz
hurd-175fa7701ded3785c31e82581f74e2fd32db7330.tar.bz2
hurd-175fa7701ded3785c31e82581f74e2fd32db7330.zip
2001-08-15 Roland McGrath <roland@frob.com>
* sizes.c: New file, a list of prime numbers useful for table sizes. * priv.h (_ihash_sizes, _ihash_nsizes): Declare. (_ihash_nextprime): Don't. * ihash.c (ihash_add): Select sizes from the _ihash_sizes array instead of using _ihash_nextprime. * Makefile: Clean up whitespace, reorder all the variable definitions. (SRCS): Remove primes.c, add sizes.c instead. (OBJS): Define dynamically.
Diffstat (limited to 'libihash/priv.h')
-rw-r--r--libihash/priv.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libihash/priv.h b/libihash/priv.h
index 5d235700..f31bf6c6 100644
--- a/libihash/priv.h
+++ b/libihash/priv.h
@@ -1,6 +1,5 @@
-/* Private declaration for ihash library
- Copyright (C) 1996 Free Software Foundation, Inc.
- Written by Michael I. Bushnell, p/BSG.
+/* Private declarations for ihash library
+ Copyright (C) 1996,2001 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -18,4 +17,5 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
-int _ihash_nextprime (unsigned);
+extern const unsigned int _ihash_sizes[];
+const unsigned int _ihash_nsizes;