X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1029ea6d02f1ed28a27b890c4e74c50d2054a8e3..b81a6e01dc7ef88cc506bb9da9022692d863a92a:/lib/hash.c diff --git a/lib/hash.c b/lib/hash.c index 4657e6d4..7373a011 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -31,24 +31,8 @@ # include #endif -#if HAVE_STDBOOL_H -# include -#else -# ifndef __bool_true_false_are_defined -# if ! HAVE__BOOL -# ifdef __cplusplus -typedef bool _Bool; -# else -typedef unsigned char _Bool; -# endif -# endif -# define bool _Bool -# define false 0 -# define true 1 -# define __bool_true_false_are_defined 1 -# endif -#endif - +#include +#include #include #ifndef HAVE_DECL_FREE @@ -420,9 +404,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) \