]> mj.ucw.cz Git - libucw.git/commit
Major cleanup of fastbufs:
authorMartin Mares <mj@ucw.cz>
Mon, 23 Sep 2002 12:07:15 +0000 (12:07 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 23 Sep 2002 12:07:15 +0000 (12:07 +0000)
commitcf83e06e4158617e981fef5bf3878315b23bf7f9
treea76566f835aeb6bbb39f5baaa632a053381ee638
parente6eb9c2d889da43a237e582176c4a082a9ad2da7
Major cleanup of fastbufs:

  o  Split generic fastbuf from low-level routines. `struct fastbuf'
     no longer contains low-level data like `fd' or `is_temp_file'.
  o  Introduced safe type casting macros to avoid programming errors.
  o  `struct fastbuf' is no longer freed by the high-level code.
  o  Documented behaviour of bflush() between reads and writes.
  o  Redefined semantics of fastbuf->pos: it now corresponds to `bstop'
     instead of `buffer', hence it always coincides with real file
     position, making `fdpos' unnecessary.
lib/fastbuf.h
lib/fb-file.c
lib/fb-mem.c
lib/fb-temp.c