]> mj.ucw.cz Git - libucw.git/commit
Fastbufs: bclose() on caller-allocated fastbuf is allowed
authorMartin Mares <mj@ucw.cz>
Tue, 5 Sep 2017 22:16:11 +0000 (00:16 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 5 Sep 2017 22:16:11 +0000 (00:16 +0200)
commitefa382e8e53bc9117a91138256354b56e77c798f
tree3b616cd8ea7b1fb1913c64c1f7630c844207e671
parent502bc034f83f69166d59fbaf7ee9a0a79f5c9222
Fastbufs: bclose() on caller-allocated fastbuf is allowed

Previously, it was impossible to catch exceptions thrown by fbbuf
(although it is quite useful in case of the "buffer overflow" exception).

With these changes, bclose() should be allowed and equivalent to bflush(),
which should do nothing :)  Hence, fb_tie() should work and so should
exception handling.
ucw/fastbuf.h
ucw/fb-buffer.c