* 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.
-Mon Jun 24 21:17:02 2002 J"orn Rennecke <joern.rennecke@superh.com>
+2002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * 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.
+
+2002-06-24 J"orn Rennecke <joern.rennecke@superh.com>
* libc/machine/sh/strcpy.S: New file.
* libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
LIB_SOURCES = \
bsearch.c \
+ db_local.h \
extern.h \
hash.c \
hash.h \
LIB_SOURCES = \
bsearch.c \
+ db_local.h \
extern.h \
hash.c \
hash.h \
#include <assert.h>
#endif
-#include <db.h>
+#include "db_local.h"
#include "hash.h"
#include "page.h"
#include "extern.h"
static void swap_header_copy(HASHHDR *, HASHHDR *);
#endif
+/* Macros for min/max. */
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
+
/* Fast arithmetic, relying on powers of 2, */
#define MOD(x, y) ((x) & ((y) - 1))
#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:
#include <assert.h>
#endif
-#include <db.h>
+#include "db_local.h"
#include "hash.h"
#include "page.h"
#include "extern.h"
#include <assert.h>
#endif
-#include <db.h>
+#include "db_local.h"
#include "hash.h"
#include "page.h"
#include "extern.h"
#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
#include <sys/cdefs.h>
#include <sys/types.h>
-#include <db.h>
+#include "db_local.h"
#include "hash.h"
#include "page.h"
#include "extern.h"
#include <sys/types.h>
-#include <db.h>
+#include "db_local.h"
__uint32_t
__log2(num)
#include <assert.h>
#endif
-#include <db.h>
+#include "db_local.h"
#include "hash.h"
#include "page.h"
#include "extern.h"