]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/search/db_local.h: New file.
authorThomas Fitzsimmons <fitzsim@redhat.com>
Mon, 24 Jun 2002 23:05:08 +0000 (23:05 +0000)
committerThomas Fitzsimmons <fitzsim@redhat.com>
Mon, 24 Jun 2002 23:05:08 +0000 (23:05 +0000)
* 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.

newlib/ChangeLog
newlib/libc/search/Makefile.am
newlib/libc/search/Makefile.in
newlib/libc/search/db_local.h [moved from newlib/libc/include/db.h with 100% similarity]
newlib/libc/search/hash.c
newlib/libc/search/hash_bigkey.c
newlib/libc/search/hash_buf.c
newlib/libc/search/hash_func.c
newlib/libc/search/hash_log2.c
newlib/libc/search/hash_page.c

index 115d68eed111af085e4191026b03830a558abb88..772b268e38af92182aa541ef0e4aaa163b0532d6 100644 (file)
@@ -1,4 +1,17 @@
-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.
index 35aa511f99458e5bcca9a6572baa45aa798194db..b888a9de1e53ea4fb062bb671ca4fac7b3696165 100644 (file)
@@ -6,6 +6,7 @@ INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
 
 LIB_SOURCES = \
        bsearch.c \
+       db_local.h \
        extern.h \
        hash.c \
        hash.h \
index 6a67280cefaee080557ae11c1cbff037b6daee69..e4fb8d6844ce343e88b3878f88f7e213c3764c9c 100644 (file)
@@ -110,6 +110,7 @@ INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
 
 LIB_SOURCES = \
        bsearch.c \
+       db_local.h \
        extern.h \
        hash.c \
        hash.h \
index 498ee3fccf6645bd8564870d257d9381036757ce..5bd4fb77e5d1575dfde4c0da0960cf3dd846502d 100644 (file)
@@ -53,7 +53,7 @@ static char sccsid[] = "@(#)hash.c    8.9 (Berkeley) 6/16/94";
 #include <assert.h>
 #endif
 
-#include <db.h>
+#include "db_local.h"
 #include "hash.h"
 #include "page.h"
 #include "extern.h"
@@ -77,6 +77,10 @@ static void  swap_header(HTAB *);
 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))
 
index 8f8c58d10965f139515cdf484ab6ca97ebefc6f0..821acd0782831c5b3da3329c5cb3c747944da034 100644 (file)
@@ -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"
index 33cdb7c206920d97577e1b599cbcb6f0aa0ad1a1..3979bcdd57352176d3f1f67f4655771f6db972cc 100644 (file)
@@ -66,7 +66,7 @@ static char sccsid[] = "@(#)hash_buf.c        8.5 (Berkeley) 7/15/94";
 #include <assert.h>
 #endif
 
-#include <db.h>
+#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
index deeb21e60305f97efa97d24239b532de009550db..52cb31ccb0acd5c6f5d6555e09561ba9645c6f9c 100644 (file)
@@ -40,7 +40,7 @@ static char sccsid[] = "@(#)hash_func.c       8.2 (Berkeley) 2/21/94";
 #include <sys/cdefs.h>
 #include <sys/types.h>
 
-#include <db.h>
+#include "db_local.h"
 #include "hash.h"
 #include "page.h"
 #include "extern.h"
index bbcddb0c7990d890eb6a90d0b1ce2595cda9179f..9414f26c222cc814cfe48f2c6c68d4512b599449 100644 (file)
@@ -41,7 +41,7 @@ static char sccsid[] = "@(#)hash_log2.c       8.2 (Berkeley) 5/31/94";
 
 #include <sys/types.h>
 
-#include <db.h>
+#include "db_local.h"
 
 __uint32_t
 __log2(num)
index a92dfa6e75bbadae3d44e71a6c270e3dcde69998..896aee8d522cf5927fe820523d406b5bf65876f1 100644 (file)
@@ -69,7 +69,7 @@ static char sccsid[] = "@(#)hash_page.c       8.7 (Berkeley) 8/16/94";
 #include <assert.h>
 #endif
 
-#include <db.h>
+#include "db_local.h"
 #include "hash.h"
 #include "page.h"
 #include "extern.h"
This page took 0.053443 seconds and 5 git commands to generate.