X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ffastbuf.c;h=c6f8a10bdd8aedb6a6e26efd6a240b956fd2e01a;hb=dae6c248288949e909510d256fe498bd23cc68bf;hp=a66d712b2902a1c564cbff5fb3636356941dea3d;hpb=a594d6320ee28c15332b4c0f240caab7ea8f857a;p=libucw.git diff --git a/ucw/fastbuf.c b/ucw/fastbuf.c index a66d712b..c6f8a10b 100644 --- a/ucw/fastbuf.c +++ b/ucw/fastbuf.c @@ -9,11 +9,11 @@ #undef LOCAL_DEBUG -#include "ucw/lib.h" -#include "ucw/fastbuf.h" -#include "ucw/resource.h" -#include "ucw/trans.h" -#include "ucw/stkstring.h" +#include +#include +#include +#include +#include #include #include @@ -108,7 +108,7 @@ static void do_seek(struct fastbuf *f, ucw_off_t pos, int whence) ASSERT(btell(f) >= 0); } -inline void bsetpos(struct fastbuf *f, ucw_off_t pos) +void bsetpos(struct fastbuf *f, ucw_off_t pos) { /* We can optimize seeks only when reading */ if (f->bptr < f->bstop && pos <= f->pos && pos >= f->pos - (f->bstop - f->buffer)) /* If bptr == bstop, then [buffer, bstop] may be undefined */