Improve buffer empty/full detection.
commit562a38b082cc6c49bf551b14c6dc5fa93e85fa19
authornico <nico@9862a28c-4e93-4879-ac26-10afcf840a8f>
Wed, 18 Jul 2007 13:43:20 +0000 (18 13:43 +0000)
committernico <nico@9862a28c-4e93-4879-ac26-10afcf840a8f>
Wed, 18 Jul 2007 13:43:20 +0000 (18 13:43 +0000)
tree12f671438320406dc88dcabd4d6dc5a25eeca456
parent61e15b96311b447f50bfe5198058d4c08bfc1ff6
Improve buffer empty/full detection.
Reserving a bit more space than actually needed allows defining that the buffer is empty when h->widx == h->ridx. The full state is checked for by buffer_handle.
This removes the need for the state struct member.

git-svn-id: svn://jdgordon.mine.nu/mob@56 9862a28c-4e93-4879-ac26-10afcf840a8f
testplugin.c