diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
| commit | 526195ad0da110e4a8a5315ec86dddc8e179c06f (patch) | |
| tree | b07c215aa55db3fb81db462f4bc70f61cd56c57f /gnu/lib/libg++ | |
| parent | 51295a4d3e4c551df85249433c490208dc7fd23d (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libg++')
| -rw-r--r-- | gnu/lib/libg++/libg++/bitblt.c | 4 | ||||
| -rw-r--r-- | gnu/lib/libg++/libg++/bitlcomp.c | 2 | ||||
| -rw-r--r-- | gnu/lib/libg++/libio/filedoalloc.c | 1 | ||||
| -rw-r--r-- | gnu/lib/libg++/libio/ioprims.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/gnu/lib/libg++/libg++/bitblt.c b/gnu/lib/libg++/libg++/bitblt.c index f7c4322884ac..a1cc71b717fb 100644 --- a/gnu/lib/libg++/libg++/bitblt.c +++ b/gnu/lib/libg++/libg++/bitblt.c @@ -68,7 +68,7 @@ _BS_blt (op, pdst, dstbit, psrc, srcbit, length) case _BS_alu_nor: ca1 = ONES; cx1 = ONES; ca2 = ONES; cx2 = ONES; break; - case_BS_alu_equiv: + case _BS_alu_equiv: ca1 = 0; cx1 = ONES; ca2 = ONES; cx2 = ONES; break; case _BS_alu_invert: @@ -91,7 +91,7 @@ _BS_blt (op, pdst, dstbit, psrc, srcbit, length) return; } { -#define COMBINE(dst, src) ((dst) & ((src) & ca1 ^ cx1) ^ ((src) & ca2 ^ cx2)) +#define COMBINE(dst, src) ( ((dst) & ( ((src) & ca1) ^ cx1)) ^ ( ((src) & ca2) ^ cx2)) #include "bitdo2.h" } } diff --git a/gnu/lib/libg++/libg++/bitlcomp.c b/gnu/lib/libg++/libg++/bitlcomp.c index edf154c4d02c..9f0c0e0ee684 100644 --- a/gnu/lib/libg++/libg++/bitlcomp.c +++ b/gnu/lib/libg++/libg++/bitlcomp.c @@ -67,7 +67,7 @@ _BS_lcompare_0 (ptr0, len0, ptr1, len1) len0 -= nwords0 * _BS_BITS_PER_WORD; len1 -= nwords1 * _BS_BITS_PER_WORD; if (len0 == 0 || len1 == 0) - return len0 == 0 - len1 == 0; + return (len0 == 0) - (len1 == 0); len0 &= _BS_BITS_PER_WORD - 1; len1 &= _BS_BITS_PER_WORD - 1; word0 = *ptr0++ & ~((_BS_word)(~0) _BS_RIGHT len0); diff --git a/gnu/lib/libg++/libio/filedoalloc.c b/gnu/lib/libg++/libio/filedoalloc.c index 92c510563179..ac96d194430b 100644 --- a/gnu/lib/libg++/libio/filedoalloc.c +++ b/gnu/lib/libg++/libio/filedoalloc.c @@ -45,6 +45,7 @@ the executable file might be covered by the GNU General Public License. */ #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> +#include <unistd.h> #ifdef __STDC__ #include <stdlib.h> #endif diff --git a/gnu/lib/libg++/libio/ioprims.c b/gnu/lib/libg++/libio/ioprims.c index 8164ba3bb113..cf9cf9393c58 100644 --- a/gnu/lib/libg++/libio/ioprims.c +++ b/gnu/lib/libg++/libio/ioprims.c @@ -31,6 +31,8 @@ the executable file might be covered by the GNU General Public License. */ #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> +#include <sys/uio.h> +#include <unistd.h> #ifdef TODO /* Add open, isatty */ |
