bputc_slow(f, c);
}
-word bgetw_slow(struct fastbuf *f);
-static inline word bgetw(struct fastbuf *f)
+int bgetw_slow(struct fastbuf *f);
+static inline int bgetw(struct fastbuf *f)
{
- word w;
+ int w;
if (f->bptr + 2 <= f->bstop)
{
w = GET_U16(f->bptr);
bputc(f, '\n');
}
+/* I/O on addr_int_t */
+
+#ifdef CPU_64BIT_POINTERS
+#define bputa(x,p) bputq(x,p)
+#define bgeta(x) bgetq(x)
+#else
+#define bputa(x,p) bputl(x,p)
+#define bgeta(x) bgetl(x)
+#endif
+
/* Direct I/O on buffers */
int bdirect_read(struct fastbuf *f, byte **buf);