mirror of
https://github.com/python/cpython.git
synced 2025-10-10 08:53:14 +00:00

* Rename Include/internal/ header files: * pyatomic.h -> pycore_atomic.h * ceval.h -> pycore_ceval.h * condvar.h -> pycore_condvar.h * context.h -> pycore_context.h * pygetopt.h -> pycore_getopt.h * gil.h -> pycore_gil.h * hamt.h -> pycore_hamt.h * hash.h -> pycore_hash.h * mem.h -> pycore_mem.h * pystate.h -> pycore_state.h * warnings.h -> pycore_warnings.h * PCbuild project, Makefile.pre.in, Modules/Setup: add the Include/internal/ directory to the search paths of header files. * Update includes. For example, replace #include "internal/mem.h" with #include "pycore_mem.h".
19 lines
458 B
C
19 lines
458 B
C
#ifndef Py_INTERNAL_PYGETOPT_H
|
|
#define Py_INTERNAL_PYGETOPT_H
|
|
|
|
extern int _PyOS_opterr;
|
|
extern int _PyOS_optind;
|
|
extern wchar_t *_PyOS_optarg;
|
|
|
|
extern void _PyOS_ResetGetOpt(void);
|
|
|
|
typedef struct {
|
|
const wchar_t *name;
|
|
int has_arg;
|
|
int val;
|
|
} _PyOS_LongOption;
|
|
|
|
extern int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring,
|
|
const _PyOS_LongOption *longopts, int *longindex);
|
|
|
|
#endif /* !Py_INTERNAL_PYGETOPT_H */
|