2017-12-15 03:48:12 -04:00
|
|
|
#ifndef Py_INTERNAL_PYGETOPT_H
|
|
|
|
#define Py_INTERNAL_PYGETOPT_H
|
|
|
|
|
2019-04-17 18:02:26 -03:00
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
2018-11-09 08:03:37 -04:00
|
|
|
#endif
|
|
|
|
|
2017-12-17 14:34:00 -04:00
|
|
|
extern int _PyOS_opterr;
|
2019-03-15 11:08:05 -03:00
|
|
|
extern Py_ssize_t _PyOS_optind;
|
|
|
|
extern const 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-15 11:08:05 -03:00
|
|
|
extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t **argv, int *longindex);
|
2017-12-15 03:48:12 -04:00
|
|
|
|
|
|
|
#endif /* !Py_INTERNAL_PYGETOPT_H */
|