* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/fastbuf.h"
+#include <ucw/lib.h>
+#include <ucw/fastbuf.h>
#include <stdio.h>
struct memstream *stream;
struct msblock *block;
};
-#define FB_MEM(f) ((struct fb_mem *)(f)->is_fastbuf)
+#define FB_MEM(f) ((struct fb_mem *)(f))
static int
fbmem_refill(struct fastbuf *f)
FB_MEM(f)->block = NULL;
return 1;
}
- bthrow(f, "fb.seek", "fbmem_seek to invalid offset");
+ bthrow(f, "seek", "fbmem_seek to an invalid offset");
}
static void
f->name = "<fbmem-write>";
f->spout = fbmem_spout;
f->close = fbmem_close;
- fb_tie(f);
return f;
}
f->seek = fbmem_seek;
f->close = fbmem_close;
f->can_overwrite_buffer = 1;
- fb_tie(f);
return f;
}