On Wed, 27 Jan 2016 14:48:17 +0100 Paul B Mahol <onemda at gmail.com> wrote: > Hi, > > patch attached. Lots of magic numbers and I didn't test it, but looks ok otherwise. Not fascinated by putting a function implementation in a header, but it's probably ok.