From 66696bd7b7d5eb9ecb78ad3b3668b1937da896b3 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 2 Sep 2001 10:23:45 +0000 Subject: [PATCH] Added I/O functions on addr_int_t. --- lib/fastbuf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/fastbuf.h b/lib/fastbuf.h index eb30d09c..1488f740 100644 --- a/lib/fastbuf.h +++ b/lib/fastbuf.h @@ -266,6 +266,16 @@ bputsn(struct fastbuf *f, byte *b) 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); -- 2.39.2