From: Michael Beck Date: Sun, 1 Jun 2008 11:33:59 +0000 (+0000) Subject: return the status code of the preprocessor on -E X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0cc5cf8154ea36db407f5d01e4e03d91455086f8;p=cparser return the status code of the preprocessor on -E [r19896] --- diff --git a/main.c b/main.c index b07e08f..49f5039 100644 --- a/main.c +++ b/main.c @@ -201,8 +201,8 @@ static FILE *preprocess(FILE *in, const char *fname, bool to_stdout) puts(buf); } if(to_stdout) { - system(buf); - exit(0); + int res = system(buf); + exit(res); } else { FILE *f = popen(buf, "r"); if(f == NULL) {