pygetopt.h 458 B

12345678910111213141516171819
  1. #ifndef Py_INTERNAL_PYGETOPT_H
  2. #define Py_INTERNAL_PYGETOPT_H
  3. extern int _PyOS_opterr;
  4. extern int _PyOS_optind;
  5. extern wchar_t *_PyOS_optarg;
  6. extern void _PyOS_ResetGetOpt(void);
  7. typedef struct {
  8. const wchar_t *name;
  9. int has_arg;
  10. int val;
  11. } _PyOS_LongOption;
  12. extern int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring,
  13. const _PyOS_LongOption *longopts, int *longindex);
  14. #endif /* !Py_INTERNAL_PYGETOPT_H */