]> granicus.if.org Git - yasm/commitdiff
Make ISO C89 compliant (too long constant string, use of // comment).
authorPeter Johnson <peter@tortall.net>
Thu, 15 May 2008 06:55:57 +0000 (06:55 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 15 May 2008 06:55:57 +0000 (06:55 -0000)
svn path=/trunk/yasm/; revision=2096

tools/re2c/main.c

index f0baaf6146fe9dcb1e88be6bf2ec28c4faaf8b8d..9484316074841580d01e097b3705ea71ddc620e0 100644 (file)
@@ -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;