7 #define _toption _woption
8 #define _toptarg _woptarg
9 #define _toptind _woptind
10 #define _topterr _wopterr
11 #define _toptopt _woptopt
12 #define _tgetopt _wgetopt
13 #define _tgetopt_long _wgetopt_long
14 #define _tgetopt_long_only _wgetopt_long_only
15 #define _tgetopt_internal _wgetopt_internal
17 #define _toption option
18 #define _toptarg optarg
19 #define _toptind optind
20 #define _topterr opterr
21 #define _toptopt optopt
22 #define _tgetopt getopt
23 #define _tgetopt_long getopt_long
24 #define _tgetopt_long_only getopt_long_only
25 #define _tgetopt_internal _getopt_internal
38 extern wchar_t *_woptarg
;
60 #define required_argument 1
61 #define optional_argument 2
63 extern int getopt (int argc
, char *const *argv
, const char *shortopts
);
64 extern int getopt_long (int argc
, char *const *argv
, const char *shortopts
,
65 const struct option
*longopts
, int *longind
);
66 extern int getopt_long_only (int argc
, char *const *argv
,
67 const char *shortopts
, const struct option
*longopts
, int *longind
);
69 extern int _wgetopt (int argc
, wchar_t *const *argv
, const wchar_t *shortopts
);
70 extern int _wgetopt_long (int argc
, wchar_t *const *argv
, const wchar_t *shortopts
,
71 const struct _woption
*longopts
, int *longind
);
72 extern int _wgetopt_long_only (int argc
, wchar_t *const *argv
,
73 const wchar_t *shortopts
,
74 const struct _woption
*longopts
, int *longind
);
76 extern int _getopt_internal (int argc
, char *const *argv
,
77 const char *shortopts
, const struct option
*longopts
, int *longind
,
80 extern int _wgetopt_internal (int argc
, wchar_t *const *argv
,
81 const wchar_t *shortopts
,
82 const struct _woption
*longopts
, int *longind
,
89 #endif /* _GETOPT_H */