scc

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

commit 8dea94d188b359ce62593231012246b7ab340662
parent b79a63cfb2cd56d47c30f9e8f219eb5a11350aa8
Author: FRIGN <dev@frign.de>
Date:   Wed, 25 May 2016 14:24:20 +0200

[cc1] Write usage according to POSIX

In general, the notation for flags is:
   -f arg
POSIX explicitly allows
   -farg
so we update the notation accordingly (to the base-notation).
We also indicate that there can be multiple calls to -D.

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

diff --git a/cc1/main.c b/cc1/main.c @@ -30,8 +30,8 @@ clean(void) static void usage(void) { - die("usage: %s [-E] [-Dmacro[=value]] [-Idir] [-w] [-d] [-o output]" - " [input]\n", argv0); + die("usage: %s [-E] [-D macro[=value]] ... [-I dir] [-w] [-d]" + "[-o output] [input]", argv0); } int