Remove getc() optimization

This has been reported as causing issues in #61 although it isn't clear
why that's happening. Having a function boundary is bullet proof.
This commit is contained in:
Justine Tunney 2021-03-02 07:34:38 -08:00
parent 3e19b96ab8
commit d53a344e18

View file

@ -100,7 +100,7 @@ int vfscanf(FILE *, const char *, va_list);
cosmopolitan § standard i/o » optimizations cosmopolitan § standard i/o » optimizations
*/ */
#define getc(f) (f->beg < f->end ? f->buf[f->beg++] : fgetc(f)) #define getc(f) fgetc(f)
#define putc(c, f) fputc(c, f) #define putc(c, f) fputc(c, f)
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) #if defined(__GNUC__) && !defined(__STRICT_ANSI__)