Add a "type" argument to bufopen and make it capable of reserving space before openin...
commit4c01db30c3ca3bc1dfb26696de2507ca3c73eccf
authorNicolas Pennequin <nicolas.pennequin@free.fr>
Sat, 4 Aug 2007 15:05:58 +0000 (4 17:05 +0200)
committerNicolas Pennequin <nicolas.pennequin@free.fr>
Sat, 4 Aug 2007 15:05:58 +0000 (4 17:05 +0200)
treeb4c2fb403d0277c805a090d20cd7bc6bd391756e
parent3bdd34980e50e87fc466975bfca28fe102925891
Add a "type" argument to bufopen and make it capable of reserving space before opening new handles.

Instead of simply refusing to open a new handle when the current one isn't finished buffering,
we check that there is enough space for the current one to finish buffering and open the new
handle at the right place.

Also adapted buffer_handle to this.
testplugin.c