]> git.tuebingen.mpg.de Git - lopsub.git/commitdiff
Fix typo in config file test program.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 31 Oct 2023 20:08:45 +0000 (21:08 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 7 Nov 2023 14:07:02 +0000 (15:07 +0100)
This code is #ifdef'ed out, so the typo was never noticed. Add a
comment which explains how to create a binary from the .l file while
at it.

config_file.l

index 58aab83fa4def89a84eefe6bf74f00e3a6f9b7dc..37cb0aca6deb7bcee9cd74768db22b165561db27 100644 (file)
@@ -285,6 +285,7 @@ free_argv:
 }
 
 #if 0
+/* flex -o t.c config_file.l && cc -o tcf t.c */
 int main(void)
 {
        char buf[100 * 1024];
@@ -300,7 +301,7 @@ int main(void)
                exit(EXIT_FAILURE);
        argc = ret;
        for (i = 0; i < argc; i++)
-               printf("argv[%d]: %s\n", i, rargv[i]);
+               printf("argv[%d]: %s\n", i, argv[i]);
        return EXIT_SUCCESS;
 }
 #endif