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:
@ -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__)
|
||||||
|
|||||||
Reference in New Issue
Block a user