1#include "stdio_impl.h" 2 3void __shlim(FILE *, off_t); 4int __shgetc(FILE *); 5 6#define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend)) 7#define shlim(f, lim) __shlim((f), (lim)) 8#define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f)) 9#define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0) 10