#include "internal.h" #include "refill.h" int bufio·getbyte(io·Buffer *buf) { getbyte: if(buf->pos < buf->end) return *buf->pos++; memmove(buf->buf, buf->end - bufio·ungets, bufio·ungets); if(refill(buf) <= 0) return bufio·eof; goto getbyte; }