#include <alloca.h>
#include "lib/unaligned.h"
-#include "lib/bbuf.h"
/*
* Generic buffered I/O. You supply hooks to be called for low-level operations
byte *bgets0(struct fastbuf *f, byte *b, uns l);
struct mempool;
-uns bgets_bb(struct fastbuf *f, bb_t *b, uns limit);
+struct bb_t;
+uns bgets_bb(struct fastbuf *f, struct bb_t *b, uns limit);
byte *bgets_mp(struct fastbuf *f, struct mempool *mp);
struct bgets_stk_struct {
#include "lib/lib.h"
#include "lib/fastbuf.h"
#include "lib/mempool.h"
+#include "lib/bbuf.h"
byte * /* Non-standard */
bgets(struct fastbuf *f, byte *b, uns l)
}
uns
-bgets_bb(struct fastbuf *f, bb_t *bb, uns limit)
+bgets_bb(struct fastbuf *f, struct bb_t *bb, uns limit)
{
ASSERT(limit);
byte *src;