]> granicus.if.org Git - re2c/commitdiff
- Some compilers like *param better than param[]
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 17 Apr 2006 19:28:47 +0000 (19:28 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 17 Apr 2006 19:28:47 +0000 (19:28 +0000)
mbo_getopt.cc
mbo_getopt.h

index 3c27bf1beef7339516aa7eacca5d86840ce6f90f..81557daa6858eee045056dfaf20ac5625542f95a 100755 (executable)
@@ -46,7 +46,7 @@ static int mbo_opt_error(int, char * const *argv, int oint, int optchr, int err,
        return ('?');
 }
 
-int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct opts[], char **optarg, int *optind, int show_err)
+int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **optarg, int *optind, int show_err)
 {
        static int optchr = 0;
        static int dash = 0; /* have already seen the - */
index 092c32d25efc4a608d71d694cea9b6c7a2ffa6fd..3b013cb25b8d3f439dbbe06e190ec6954e67784c 100755 (executable)
@@ -26,7 +26,7 @@ struct mbo_opt_struct
        const char * opt_name;
 };
 
-int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct opts[], char **optarg, int *optind, int show_err);
+int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **optarg, int *optind, int show_err);
 
 } // end namespace re2c