diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-12-15 07:48:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 07:48:12 (GMT) |
commit | e425bd75177ffb7f098bdb0618b4a5ba3211fe52 (patch) | |
tree | 459f866641039b9111acff53ed3a0aaecce8ffd6 /Include/internal | |
parent | f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847 (diff) | |
download | cpython-e425bd75177ffb7f098bdb0618b4a5ba3211fe52.zip cpython-e425bd75177ffb7f098bdb0618b4a5ba3211fe52.tar.gz cpython-e425bd75177ffb7f098bdb0618b4a5ba3211fe52.tar.bz2 |
move pygetopt.h to internal (closes bpo-32264) (#4830)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pygetopt.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Include/internal/pygetopt.h b/Include/internal/pygetopt.h new file mode 100644 index 0000000..df6f183 --- /dev/null +++ b/Include/internal/pygetopt.h @@ -0,0 +1,19 @@ +#ifndef Py_INTERNAL_PYGETOPT_H +#define Py_INTERNAL_PYGETOPT_H + +int _PyOS_opterr; +int _PyOS_optind; +wchar_t *_PyOS_optarg; + +void _PyOS_ResetGetOpt(void); + +typedef struct { + const wchar_t *name; + int has_arg; + int val; +} _PyOS_LongOption; + +int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring, + const _PyOS_LongOption *longopts, int *longindex); + +#endif /* !Py_INTERNAL_PYGETOPT_H */ |