X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fhash.c;h=3948ce4cf69d3b4dfaeaa3e79c8f44883d8befec;hb=265465e1145409720be48d30b6277a59151d293a;hp=d73bb6b26e96775cc3812181f1aaf38a170a6248;hpb=0b98d363102e44810338b2d18fa048b57f833df3;p=gnulib.git diff --git a/lib/hash.c b/lib/hash.c index d73bb6b26..3948ce4cf 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -27,26 +27,11 @@ #if HAVE_CONFIG_H # include #endif -#if HAVE_STDLIB_H -# include -#endif +#include #include #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 #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) \