Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 1 | |
| 2 | #ifndef Py_PYGETOPT_H |
| 3 | #define Py_PYGETOPT_H |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Martin v. Löwis | 4d0d471 | 2010-12-03 20:14:31 +0000 | [diff] [blame] | 8 | #ifndef Py_LIMITED_API |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 9 | PyAPI_DATA(int) _PyOS_opterr; |
| 10 | PyAPI_DATA(int) _PyOS_optind; |
Martin v. Löwis | 790465f | 2008-04-05 20:41:37 +0000 | [diff] [blame] | 11 | PyAPI_DATA(wchar_t *) _PyOS_optarg; |
Antoine Pitrou | 86838b0 | 2012-02-21 19:03:47 +0100 | [diff] [blame] | 12 | |
| 13 | PyAPI_FUNC(void) _PyOS_ResetGetOpt(void); |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 14 | |
Benjamin Peterson | 42aa93b | 2017-12-09 10:26:52 -0800 | [diff] [blame^] | 15 | typedef struct { |
| 16 | const wchar_t *name; |
| 17 | int has_arg; |
| 18 | int val; |
| 19 | } _PyOS_LongOption; |
| 20 | |
| 21 | PyAPI_FUNC(int) _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring, |
| 22 | const _PyOS_LongOption *longopts, int *longindex); |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 23 | #endif /* !Py_LIMITED_API */ |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | #endif /* !Py_PYGETOPT_H */ |