2017-12-15 03:48:12 -04:00
|
|
|
#ifndef Py_INTERNAL_PYGETOPT_H
|
|
|
|
#define Py_INTERNAL_PYGETOPT_H
|
|
|
|
|
2017-12-17 14:34:00 -04:00
|
|
|
extern int _PyOS_opterr;
|
|
|
|
extern int _PyOS_optind;
|
|
|
|
extern wchar_t *_PyOS_optarg;
|
2017-12-15 03:48:12 -04:00
|
|
|
|
2017-12-17 14:34:00 -04:00
|
|
|
extern void _PyOS_ResetGetOpt(void);
|
2017-12-15 03:48:12 -04:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const wchar_t *name;
|
|
|
|
int has_arg;
|
|
|
|
int val;
|
|
|
|
} _PyOS_LongOption;
|
|
|
|
|
2017-12-17 14:34:00 -04:00
|
|
|
extern int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring,
|
|
|
|
const _PyOS_LongOption *longopts, int *longindex);
|
2017-12-15 03:48:12 -04:00
|
|
|
|
|
|
|
#endif /* !Py_INTERNAL_PYGETOPT_H */
|