2017-12-15 03:48:12 -04:00
|
|
|
#ifndef Py_INTERNAL_PYGETOPT_H
|
|
|
|
#define Py_INTERNAL_PYGETOPT_H
|
|
|
|
|
2018-11-09 08:03:37 -04:00
|
|
|
#if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
|
|
|
|
# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
|
|
|
|
#endif
|
|
|
|
|
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;
|
|
|
|
|
2019-03-04 21:44:12 -04:00
|
|
|
extern int _PyOS_GetOpt(int argc, wchar_t **argv, int *longindex);
|
2017-12-15 03:48:12 -04:00
|
|
|
|
|
|
|
#endif /* !Py_INTERNAL_PYGETOPT_H */
|