Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/cpython
Path: blob/main/Include/internal/pycore_getopt.h
12 views
1
#ifndef Py_INTERNAL_PYGETOPT_H
2
#define Py_INTERNAL_PYGETOPT_H
3
4
#ifndef Py_BUILD_CORE
5
# error "this header requires Py_BUILD_CORE define"
6
#endif
7
8
extern int _PyOS_opterr;
9
extern Py_ssize_t _PyOS_optind;
10
extern const wchar_t *_PyOS_optarg;
11
12
extern void _PyOS_ResetGetOpt(void);
13
14
typedef struct {
15
const wchar_t *name;
16
int has_arg;
17
int val;
18
} _PyOS_LongOption;
19
20
extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex);
21
22
#endif /* !Py_INTERNAL_PYGETOPT_H */
23
24