2017-12-15 07:48:12 +00:00
|
|
|
#ifndef Py_INTERNAL_PYGETOPT_H
|
|
|
|
#define Py_INTERNAL_PYGETOPT_H
|
|
|
|
|
2019-04-17 21:02:26 +00:00
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
2018-11-09 12:03:37 +00:00
|
|
|
#endif
|
|
|
|
|
2017-12-17 18:34:00 +00:00
|
|
|
extern int _PyOS_opterr;
|
2019-03-15 14:08:05 +00:00
|
|
|
extern Py_ssize_t _PyOS_optind;
|
|
|
|
extern const wchar_t *_PyOS_optarg;
|
2017-12-15 07:48:12 +00:00
|
|
|
|
2017-12-17 18:34:00 +00:00
|
|
|
extern void _PyOS_ResetGetOpt(void);
|
2017-12-15 07:48:12 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const wchar_t *name;
|
|
|
|
int has_arg;
|
|
|
|
int val;
|
|
|
|
} _PyOS_LongOption;
|
|
|
|
|
2019-05-17 01:15:12 +00:00
|
|
|
extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex);
|
2017-12-15 07:48:12 +00:00
|
|
|
|
|
|
|
#endif /* !Py_INTERNAL_PYGETOPT_H */
|