00001
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef VL_GETOPT_LONG_H
00017 #define VL_GETOPT_LONG_H
00018
00019 #include "generic.h"
00020
00021 extern VL_EXPORT int opterr ;
00022 extern VL_EXPORT int optind ;
00023 extern VL_EXPORT int optopt ;
00024 extern VL_EXPORT char * optarg ;
00025 extern VL_EXPORT int optreset;
00028 struct option
00029 {
00030 const char *name ;
00031 int has_arg ;
00032 int *flag ;
00033 int val ;
00034 } ;
00035
00036 #define no_argument 0
00037 #define required_argument 1
00038 #define optional_argument 2
00040 extern VL_EXPORT int getopt_long(int argc, char *const argv[],
00041 const char *optstring,
00042 const struct option * longopts, int *longindex);
00043
00044
00045 #endif
00046