]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
Introduced obuck_get_pos(), converted gatherd limits to use it.
[libucw.git] / lib / fastbuf.h
index 15bfed5a89cf1b42541c3dcdc5a7a12717feeab4..cd08fa8a9b88839800729f81cde5141850d2cbd8 100644 (file)
@@ -306,6 +306,7 @@ static inline void bwrite(struct fastbuf *f, void *b, uns l)
 }
 
 byte *bgets(struct fastbuf *f, byte *b, uns l);        /* Non-std */
+byte *bgets0(struct fastbuf *f, byte *b, uns l);
 
 static inline void
 bputs(struct fastbuf *f, byte *b)
@@ -339,11 +340,15 @@ void bdirect_write_commit(struct fastbuf *f, byte *pos);
 #define bputo(f,l) bput5(f,l)
 #define bgetp(f) bgetq(f)
 #define bputp(f,l) bputq(f,l)
+#define FASTBUF_BYTES_PER_O 5
+#define FASTBUF_BYTES_PER_P 8
 #else
 #define bgeto(f) bgetl(f)
 #define bputo(f,l) bputl(f,l)
 #define bgetp(f) bgetl(f)
 #define bputp(f,l) bputl(f,l)
+#define FASTBUF_BYTES_PER_O 4
+#define FASTBUF_BYTES_PER_P 4
 #endif
 
 #endif