X-Git-Url: http://git.kpe.io/?p=wdq2wav.git;a=blobdiff_plain;f=msvc%2Fwdq2wav%2Fgetopt.h;h=17450ad055bd2031666a5b257bb0afa33c42ac20;hp=da0a54adc618e07f2abc19d0b7c79615e527c48e;hb=6e0f65ebf4769e7f90e2ef29539cd493de9bf14b;hpb=3e5a9b0f75acd40dc7179719d17334b11fe9c7a2 diff --git a/msvc/wdq2wav/getopt.h b/msvc/wdq2wav/getopt.h index da0a54a..17450ad 100644 --- a/msvc/wdq2wav/getopt.h +++ b/msvc/wdq2wav/getopt.h @@ -27,7 +27,7 @@ # define _GETOPT_H 1 #endif -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -69,9 +69,9 @@ extern int optopt; zero. The field `has_arg' is: - no_argument (or 0) if the option does not take an argument, - required_argument (or 1) if the option requires an argument, - optional_argument (or 2) if the option takes an optional argument. + no_argument (or 0) if the option does not take an argument, + required_argument (or 1) if the option requires an argument, + optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but @@ -100,10 +100,10 @@ struct option /* Names for the values of the `has_arg' field of `struct option'. */ -# define no_argument 0 -# define required_argument 1 -# define optional_argument 2 -#endif /* need getopt */ +# define no_argument 0 +# define required_argument 1 +# define optional_argument 2 +#endif /* need getopt */ /* Get definitions and prototypes for functions to process the @@ -130,7 +130,7 @@ struct option arguments to the option '\0'. This behavior is specific to the GNU `getopt'. */ -#if defined __STDC__ +#if defined __STDC__ # ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation @@ -142,33 +142,33 @@ extern int getopt (int __argc, char *const *__argv, const char *__shortopts); # ifndef __need_getopt extern int getopt_long (int argc, char *const *argv, const char *shortopts, - const struct option *longopts, int *longind); + const struct option *longopts, int *longind); extern int getopt_long_only (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind); + const char *__shortopts, + const struct option *__longopts, int *__longind); /* Internal only. Users should not call this directly. */ extern int _getopt_internal (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only); + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only); # endif #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt extern int getopt_long (int argc, char *const *argv, const char *shortopts, - const struct option *longopts, int *longind); + const struct option *longopts, int *longind); extern int getopt_long_only (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind); + const char *__shortopts, + const struct option *__longopts, int *__longind); extern int _getopt_internal (int __argc, char *const *__argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only); + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only); # endif #endif /* __STDC__ */ -#ifdef __cplusplus +#ifdef __cplusplus } #endif