scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 4ab0abc2045290932735c9df5962bdaeae211981
parent 009aeb3d52f4a1aa03ac9fee18ccd42539a11db4
Author: Quentin Rameau <quinq@fifth.space>
Date:   Fri, 10 Jun 2016 10:50:07 +0200

[driver] clean in and out tool fds

This fixes using outdated fds when reusing on a later pass a tool which
got its input from stdin, but would now read it from command line passed
file.

Diffstat:
Mdriver/posix/scc.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -307,6 +307,8 @@ validatetools(void) t->nargs = t->nparams; t->pid = 0; t->error = 0; + t->in = 0; + t->out = 0; } } }