summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2008-05-15 06:55:57 +0000
committerPeter Johnson <peter@tortall.net>2008-05-15 06:55:57 +0000
commit3d8a8f577c0c9c002a54fed7e3868d91dea03ee6 (patch)
tree9f14151ae49e54a4bbd198c4cc474fe608b5e5e5 /tools
parenta72cc83b3ca66fef496325032f461c58b180d37e (diff)
downloadyasm-3d8a8f577c0c9c002a54fed7e3868d91dea03ee6.tar.gz
Make ISO C89 compliant (too long constant string, use of // comment).
svn path=/trunk/yasm/; revision=2096
Diffstat (limited to 'tools')
-rw-r--r--tools/re2c/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/re2c/main.c b/tools/re2c/main.c
index f0baaf61..94843160 100644
--- a/tools/re2c/main.c
+++ b/tools/re2c/main.c
@@ -45,20 +45,23 @@ static void usage()
"-? -h --help Display this info.\n"
"\n"
"-b --bit-vectors Implies -s. Use bit vectors as well in the attempt to\n"
- " coax better code out of the compiler. Most useful for\n"
+ " coax better code out of the compiler. Most useful for\n");
+ fprintf(stderr,
" specifications with more than a few keywords (e.g. for\n"
" most programming languages).\n"
"\n"
"-e --ecb Cross-compile from an ASCII platform to\n"
" an EBCDIC one.\n"
- "\n"
+ "\n");
+ fprintf(stderr,
"-s --nested-ifs Generate nested ifs for some switches. Many compilers\n"
" need this assist to generate better code.\n"
"\n"
"-f --storable-state Generate a scanner with support for storable state\n"
"\n"
"-o --output=output Specify the output file instead of stdout\n"
- "\n"
+ "\n");
+ fprintf(stderr,
"-d --debug-output Creates a parser that dumps information during\n"
" about the current position and in which state the\n"
" parser is.\n"
@@ -159,7 +162,7 @@ int main(int argc, char *argv[])
}
}
- // set up the output stream
+ /* set up the output stream */
if (outputFileName == 0 || (fileName[0] == '-' && fileName[1] == '\0')) {
outputFileName = mystrdup("<stdout>");
output = stdout;