From: Martin Mares Date: Sun, 2 Sep 2001 10:23:45 +0000 (+0000) Subject: Added I/O functions on addr_int_t. X-Git-Tag: holmes-import~1474 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=66696bd7b7d5eb9ecb78ad3b3668b1937da896b3;p=libucw.git Added I/O functions on addr_int_t. --- 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);