pycore_getopt.h 490 B

12345678910111213141516171819202122
  1. #ifndef Py_INTERNAL_PYGETOPT_H
  2. #define Py_INTERNAL_PYGETOPT_H
  3. #ifndef Py_BUILD_CORE
  4. # error "this header requires Py_BUILD_CORE define"
  5. #endif
  6. extern int _PyOS_opterr;
  7. extern Py_ssize_t _PyOS_optind;
  8. extern const wchar_t *_PyOS_optarg;
  9. extern void _PyOS_ResetGetOpt(void);
  10. typedef struct {
  11. const wchar_t *name;
  12. int has_arg;
  13. int val;
  14. } _PyOS_LongOption;
  15. extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex);
  16. #endif /* !Py_INTERNAL_PYGETOPT_H */