]> mj.ucw.cz Git - libucw.git/commitdiff
Added I/O functions on addr_int_t.
authorMartin Mares <mj@ucw.cz>
Sun, 2 Sep 2001 10:23:45 +0000 (10:23 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 2 Sep 2001 10:23:45 +0000 (10:23 +0000)
lib/fastbuf.h

index eb30d09cf0a38d98faa40799f49b290cd11e6c29..1488f74045c59c0aac641f9194fb5c25c73f162f 100644 (file)
@@ -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);