X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhash.c;h=3948ce4cf69d3b4dfaeaa3e79c8f44883d8befec;hb=22c1c15d0a29a1b7ea75456abe3f7062f835c887;hp=26e7b6175e1156636511f3f8c5a384c838170db4;hpb=4a105521356c59c1a9af6d8ee5830402416ac2f9;p=gnulib.git diff --git a/lib/hash.c b/lib/hash.c index 26e7b6175..3948ce4cf 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -1,5 +1,8 @@ /* hash - hashing table processing. - Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software + Foundation, Inc. + Written by Jim Meyering, 1992. This program is free software; you can redistribute it and/or modify @@ -24,29 +27,11 @@ #if HAVE_CONFIG_H # include #endif -#if HAVE_STDLIB_H -# include -#endif -#if HAVE_STDBOOL_H -# include -#else -typedef enum {false = 0, true = 1} bool; -#endif -#include -#ifndef HAVE_DECL_FREE -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_FREE -void free (); -#endif - -#ifndef HAVE_DECL_MALLOC -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_MALLOC -char *malloc (); -#endif +#include +#include +#include +#include #if USE_OBSTACK # include "obstack.h" @@ -403,9 +388,6 @@ hash_do_for_each (const Hash_table *table, Hash_processor processor, unsigned hash_string (const char *string, unsigned n_buckets) { -# ifndef CHAR_BIT -# define CHAR_BIT 8 -# endif # define ROTATE_LEFT(Value, Shift) \ ((Value) << (Shift) | (Value) >> ((sizeof (unsigned) * CHAR_BIT) - (Shift))) # define HASH_ONE_CHAR(Value, Byte) \