From 0093fda9e85344fe47f162e1a5627479c183947a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 2 Oct 1999 05:59:29 +0000 Subject: 1999-10-02 Roland McGrath * bitmap.c (count_free, find_next_zero_bit, find_first_zero_bit): Make these all static inline. (ffz, ffz_nibble_map): Function and variable removed. (ffz): Replace decl with macro defined in terms of ffs. * ext2fs.h (count_free, find_next_zero_bit, find_first_zero_bit, ffz): Remove these declarations. * Makefile (SRCS): Remove bitmap.c. (LCLHDRS): Add bitmap.c here instead. * balloc.c, ialloc.c: #include "bitmap.c" here. --- ext2fs/balloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext2fs/balloc.c') diff --git a/ext2fs/balloc.c b/ext2fs/balloc.c index 661894f6..437febaa 100644 --- a/ext2fs/balloc.c +++ b/ext2fs/balloc.c @@ -42,7 +42,7 @@ #include #include "ext2fs.h" - +#include "bitmap.c" /* Returns a pointer to the first occurence of CH in the buffer BUF of len LEN, or BUF + LEN if CH doesn't occur. */ @@ -52,7 +52,6 @@ memscan (void *buf, unsigned char ch, size_t len) return memchr (buf, ch, len) ?: buf + len; } - #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) void -- cgit v1.2.3