scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 15a9dbb432b0baf575557c2bca9cb2ec2e5a3112
parent 16eae6287d270bfdfb8e1eff0552605045a5f263
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 15 Oct 2018 13:30:07 +0100

[lib/c] Allocate buffers in stdio by demand

Don't allocate buffers for FILEs before they are used.

Diffstat:
Mlib/c/stdio.c | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/lib/c/stdio.c b/lib/c/stdio.c @@ -3,21 +3,11 @@ FILE __iob[FOPEN_MAX] = { { .fd = 0, - .buf = NULL, - .len = BUFSIZ, .flags = _IOREAD, - .lp = inbuf, - .rp = inbuf, - .wp = inbuf, }, { .fd = 1, - .buf = NULL, - .len = BUFSIZ, .flags = _IOWRITE | _IOLBF, - .lp = outbuf, - .rp = outbuf, - .wp = outbuf, }, { .fd = 2,