From d5487d3fb771c118a7568b95e08d7a4ebebce7fa Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Mon, 24 Jun 2002 23:05:08 +0000 Subject: * 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 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. --- newlib/libc/search/hash_buf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'newlib/libc/search/hash_buf.c') diff --git a/newlib/libc/search/hash_buf.c b/newlib/libc/search/hash_buf.c index 33cdb7c..3979bcd 100644 --- a/newlib/libc/search/hash_buf.c +++ b/newlib/libc/search/hash_buf.c @@ -66,7 +66,7 @@ static char sccsid[] = "@(#)hash_buf.c 8.5 (Berkeley) 7/15/94"; #include #endif -#include +#include "db_local.h" #include "hash.h" #include "page.h" #include "extern.h" @@ -93,6 +93,10 @@ static BUFHEAD *newbuf(HTAB *, __uint32_t, BUFHEAD *); #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead) #define LRU_INSERT(B) BUF_INSERT((B), LRU) +/* Macros for min/max. */ +#define MIN(a,b) (((a)<(b))?(a):(b)) +#define MAX(a,b) (((a)>(b))?(a):(b)) + /* * We are looking for a buffer with address "addr". If prev_bp is NULL, then * address is a bucket index. If prev_bp is not NULL, then it points to the -- cgit v1.1