scc

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

commit d785a7267039963ea252c124c7a0e686abef01f9
parent ca77a17992c925b16bf0764b4ea9fcca6066f065
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed, 15 Jun 2016 20:53:51 +0200

[cc1] be sure to return the error code when it is set

Diffstat:
Mcc1/main.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc1/main.c b/cc1/main.c @@ -18,11 +18,11 @@ jmp_buf recover; static char *output; int onlycpp; +extern int failure; + static void clean(void) { - extern int failure; - if (failure && output) remove(output); } @@ -98,5 +98,5 @@ main(int argc, char *argv[]) decl(); } - return 0; + return failure; }