mirror of
https://github.com/fluencelabs/musl
synced 2025-06-03 18:11:40 +00:00
10 lines
311 B
C
10 lines
311 B
C
#include "stdio_impl.h"
|
|
|
|
void __shlim(FILE *, off_t);
|
|
int __shgetc(FILE *);
|
|
|
|
#define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend))
|
|
#define shlim(f, lim) __shlim((f), (lim))
|
|
#define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f))
|
|
#define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0)
|