blob: 3e3fe364901f8b3a91555e6281156b3f17269f90 [file] [log] [blame]
Thomas Wouters2cffc7d2000-11-03 08:18:37 +00001
2#ifndef Py_PYGETOPT_H
3#define Py_PYGETOPT_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Martin v. Löwis4d0d4712010-12-03 20:14:31 +00008#ifndef Py_LIMITED_API
Mark Hammond91a681d2002-08-12 07:21:58 +00009PyAPI_DATA(int) _PyOS_opterr;
10PyAPI_DATA(int) _PyOS_optind;
Martin v. Löwis790465f2008-04-05 20:41:37 +000011PyAPI_DATA(wchar_t *) _PyOS_optarg;
Antoine Pitrou86838b02012-02-21 19:03:47 +010012
13PyAPI_FUNC(void) _PyOS_ResetGetOpt(void);
Thomas Wouters2cffc7d2000-11-03 08:18:37 +000014
Benjamin Peterson42aa93b2017-12-09 10:26:52 -080015typedef struct {
16 const wchar_t *name;
17 int has_arg;
18 int val;
19} _PyOS_LongOption;
20
21PyAPI_FUNC(int) _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring,
22 const _PyOS_LongOption *longopts, int *longindex);
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030023#endif /* !Py_LIMITED_API */
Thomas Wouters2cffc7d2000-11-03 08:18:37 +000024
25#ifdef __cplusplus
26}
27#endif
28#endif /* !Py_PYGETOPT_H */