diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 21:29:06 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 21:29:06 +0000 |
| commit | 37721c830937200b9e0c48230cdd69d1bdf4ec69 (patch) | |
| tree | e486dca4f9bd4c33083e88473624273b6c450c4d /usr.bin/make/buf.c | |
| parent | 0fd9fa89a98b14d8c6d0c6a16ef9e4c8c3ac8428 (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/buf.c')
| -rw-r--r-- | usr.bin/make/buf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/make/buf.c b/usr.bin/make/buf.c index 26d48901ccc4..eb6b8cb5e144 100644 --- a/usr.bin/make/buf.c +++ b/usr.bin/make/buf.c @@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$"); #include "buf.h" #ifndef max -#define max(a,b) ((a) > (b) ? (a) : (b)) +#define max(a,b) ((a) > (b) ? (a) : (b)) #endif /* @@ -62,7 +62,7 @@ __FBSDID("$FreeBSD$"); * Makes sure there's room for an extra NULL byte at the end of the * buffer in case it holds a string. */ -#define BufExpand(bp,nb) \ +#define BufExpand(bp,nb) \ if (bp->left < (nb)+1) {\ int newSize = (bp)->size + max((nb)+1,BUF_ADD_INC); \ Byte *newBuf = (Byte *) erealloc((bp)->buffer, newSize); \ @@ -74,9 +74,9 @@ __FBSDID("$FreeBSD$"); (bp)->left = newSize - ((bp)->inPtr - (bp)->buffer);\ } -#define BUF_DEF_SIZE 256 /* Default buffer size */ -#define BUF_ADD_INC 256 /* Expansion increment when Adding */ -#define BUF_UNGET_INC 16 /* Expansion increment when Ungetting */ +#define BUF_DEF_SIZE 256 /* Default buffer size */ +#define BUF_ADD_INC 256 /* Expansion increment when Adding */ +#define BUF_UNGET_INC 16 /* Expansion increment when Ungetting */ /*- *----------------------------------------------------------------------- |
