diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-06-24 23:05:08 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-06-24 23:05:08 +0000 |
commit | d5487d3fb771c118a7568b95e08d7a4ebebce7fa (patch) | |
tree | eafdb0cc409eb40355b4ef19655cdd48d9147eaf /newlib/libc/search/hash_bigkey.c | |
parent | 59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc (diff) | |
download | newlib-d5487d3fb771c118a7568b95e08d7a4ebebce7fa.zip newlib-d5487d3fb771c118a7568b95e08d7a4ebebce7fa.tar.gz newlib-d5487d3fb771c118a7568b95e08d7a4ebebce7fa.tar.bz2 |
* libc/search/db_local.h: New file.
* libc/include/db.h: Remove.
* libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
* libc/search/hash.c (MIN,MAX): Add macros. Change <db.h> to
"db_local.h".
* libc/search/hash_bigkey.c: Likewise.
* libc/search/hash_buf.c: Likewise.
* libc/search/hash_func.c: Likewise.
* libc/search/hash_log2.c: Likewise.
* libc/search/hash_page.c: Likewise.
Diffstat (limited to 'newlib/libc/search/hash_bigkey.c')
-rw-r--r-- | newlib/libc/search/hash_bigkey.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/search/hash_bigkey.c b/newlib/libc/search/hash_bigkey.c index 8f8c58d..821acd0 100644 --- a/newlib/libc/search/hash_bigkey.c +++ b/newlib/libc/search/hash_bigkey.c @@ -40,6 +40,10 @@ static char sccsid[] = "@(#)hash_bigkey.c 8.3 (Berkeley) 5/31/94"; #endif /* LIBC_SCCS and not lint */ #include <sys/cdefs.h> +/* Macros for min/max. */ +#define MIN(a,b) (((a)<(b))?(a):(b)) +#define MAX(a,b) (((a)>(b))?(a):(b)) + /* * PACKAGE: hash * DESCRIPTION: @@ -69,7 +73,7 @@ static char sccsid[] = "@(#)hash_bigkey.c 8.3 (Berkeley) 5/31/94"; #include <assert.h> #endif -#include <db.h> +#include "db_local.h" #include "hash.h" #include "page.h" #include "extern.h" |