File indexing completed on 2025-01-30 10:18:06
0001 #ifndef Py_INTERNAL_PYGETOPT_H
0002 #define Py_INTERNAL_PYGETOPT_H
0003
0004 #ifndef Py_BUILD_CORE
0005 # error "this header requires Py_BUILD_CORE define"
0006 #endif
0007
0008 extern int _PyOS_opterr;
0009 extern Py_ssize_t _PyOS_optind;
0010 extern const wchar_t *_PyOS_optarg;
0011
0012 extern void _PyOS_ResetGetOpt(void);
0013
0014 typedef struct {
0015 const wchar_t *name;
0016 int has_arg;
0017 int val;
0018 } _PyOS_LongOption;
0019
0020 extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex);
0021
0022 #endif