WAVAIL
#define WAVAIL (q<s->read?s->read-q-1:s->end-q)
#define WAVAIL (uInt)(q < s->read ? s->read-q-1 : s->end-q)