fc39509245
1) Add FreeBSD: tag. 2) Add parenthesis around macro args. 3) Add parenthesis around macros which are expressions. 4) Add do { ... } while (0) around macros which are compound statements. 5) Sync bitstr_size and bit_alloc with neater versions from NetBSD. 6) Fix bit_ffs and bit_ffc so that they don't search off the end of the bitstirng. 7) Try to avoid rightshifting signed ints. I didn't take NetBSD's version directly as the macros are significantly slower for long bitstrings. Bruce reviewed a previous version of this patch. PR: 21204 Submitted by: bob@immure.com Reviewed by: bde |
||
---|---|---|
.. | ||
arpa | ||
protocols | ||
rpc | ||
rpcsvc | ||
_ctype.h | ||
a.out.h | ||
ar.h | ||
assert.h | ||
bitstring.h | ||
ctype.h | ||
db.h | ||
dirent.h | ||
disktab.h | ||
dlfcn.h | ||
elf-hints.h | ||
elf.h | ||
err.h | ||
fnmatch.h | ||
fstab.h | ||
fts.h | ||
glob.h | ||
grp.h | ||
hesiod.h | ||
histedit.h | ||
ieeefp.h | ||
ifaddrs.h | ||
iso646.h | ||
libgen.h | ||
limits.h | ||
link.h | ||
locale.h | ||
Makefile | ||
malloc.h | ||
math.h | ||
memory.h | ||
mpool.h | ||
ndbm.h | ||
netdb.h | ||
nl_types.h | ||
nlist.h | ||
nsswitch.h | ||
objformat.h | ||
paths.h | ||
pthread_np.h | ||
pthread.h | ||
pwd.h | ||
ranlib.h | ||
regex.h | ||
regexp.h | ||
resolv.h | ||
rune.h | ||
runetype.h | ||
search.h | ||
setjmp.h | ||
sgtty.h | ||
signal.h | ||
stab.h | ||
stdbool.h | ||
stddef.h | ||
stdio.h | ||
stdlib.h | ||
strhash.h | ||
string.h | ||
stringlist.h | ||
strings.h | ||
struct.h | ||
sysexits.h | ||
tar.h | ||
time.h | ||
timers.h | ||
ttyent.h | ||
unistd.h | ||
utime.h | ||
utmp.h | ||
vis.h |