scc

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

commit 0c7104c6a979801a9ad3c164dce3812974dc1601
parent a0d198a1bfef04690021893794afc3e22de38946
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 16 Jan 2017 17:02:37 +0100

[cc1] Fix commit 04b94d8

The condition to have on EOF is to have an input which
reads of a file.

Diffstat:
Mcc1/lex.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -653,7 +653,7 @@ repeat: * we don't have more inputs, or when the next * next input is from a file */ - if (!input || !input->next || !input->next->fp) + if (!input || !input->next || input->next->fp) return; } if (!moreinput())