Mercurial > hg > index.cgi
diff lwasm/list.c @ 456:83a124428f44
Cause warnings to show up in the listing output.
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 16 Feb 2018 23:24:18 -0700 |
parents | 61580fc48f98 |
children | 7d6eacd87370 |
line wrap: on
line diff
--- a/lwasm/list.c Fri Feb 16 22:53:46 2018 -0700 +++ b/lwasm/list.c Fri Feb 16 23:24:18 2018 -0700 @@ -91,7 +91,8 @@ lwasm_error_t *e; for (e = nl -> warn; e; e = e -> next) { - printf("Warning: %s\n", e -> mess); + if (of != stdout) printf("Warning: %s\n", e -> mess); + fprintf(of, "Warning: %s\n", e -> mess); } } if (nc == 0) @@ -119,7 +120,8 @@ lwasm_error_t *e; for (e = cl -> warn; e; e = e -> next) { - printf("Warning: %s\n", e -> mess); + if (of != stdout) printf("Warning: %s\n", e -> mess); + fprintf(of, "Warning: %s\n", e -> mess); } } obytelen = cl -> outputl;