X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/fb598966714d3b48edeed0ced71b0add20d8cda4..6a3d9147014315916a5e782ebb53669a9feba53e:/usr.bin/make/buf.h diff --git a/usr.bin/make/buf.h b/usr.bin/make/buf.h index 3ddb497421..4ea8e45a3f 100644 --- a/usr.bin/make/buf.h +++ b/usr.bin/make/buf.h @@ -40,7 +40,7 @@ * * from: @(#)buf.h 8.1 (Berkeley) 6/6/93 * $FreeBSD: src/usr.bin/make/buf.h,v 1.9 1999/08/28 01:03:26 peter Exp $ - * $DragonFly: src/usr.bin/make/buf.h,v 1.9 2005/01/06 10:52:59 okumoto Exp $ + * $DragonFly: src/usr.bin/make/buf.h,v 1.10 2005/01/06 13:18:58 okumoto Exp $ */ /*- @@ -73,24 +73,24 @@ typedef struct Buffer { Byte *buffer; /* The buffer itself */ Byte *inPtr; /* Place to write to */ Byte *outPtr; /* Place to read from */ -} *Buffer; +} Buffer; /* Buf_AddByte adds a single byte to a buffer. */ #define Buf_AddByte(bp, byte) \ (void)(--(bp)->left <= 0 ? Buf_OvAddByte((bp), (byte)), 1 : \ (*(bp)->inPtr++ = (byte), *(bp)->inPtr = 0), 1) -void Buf_OvAddByte(Buffer, Byte); -void Buf_AddBytes(Buffer, size_t, const Byte *); -void Buf_UngetByte(Buffer, Byte); -void Buf_UngetBytes(Buffer, size_t, Byte *); -int Buf_GetByte(Buffer); -int Buf_GetBytes(Buffer, size_t, Byte *); -Byte *Buf_GetAll(Buffer, size_t *); -void Buf_Discard(Buffer, size_t); -size_t Buf_Size(Buffer); -Buffer Buf_Init(size_t); -void Buf_Destroy(Buffer, Boolean); -void Buf_ReplaceLastByte(Buffer, Byte); +void Buf_OvAddByte(Buffer *, Byte); +void Buf_AddBytes(Buffer *, size_t, const Byte *); +void Buf_UngetByte(Buffer *, Byte); +void Buf_UngetBytes(Buffer *, size_t, Byte *); +int Buf_GetByte(Buffer *); +int Buf_GetBytes(Buffer *, size_t, Byte *); +Byte *Buf_GetAll(Buffer *, size_t *); +void Buf_Discard(Buffer *, size_t); +size_t Buf_Size(Buffer *); +Buffer *Buf_Init(size_t); +void Buf_Destroy(Buffer *, Boolean); +void Buf_ReplaceLastByte(Buffer *, Byte); #endif /* buf_h_a61a6812 */