mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-38353: Cleanup includes in the internal C API (GH-16548)
Use forward declaration of types to avoid includes in the internal C API. Add also comment to justify other includes.
This commit is contained in:
parent
b3e7045f83
commit
61691d8336
16 changed files with 27 additions and 31 deletions
|
|
@ -8,7 +8,8 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
#include "pycore_pystate.h" /* _PyRuntimeState */
|
||||
/* Forward declaration */
|
||||
typedef struct pyruntimestate _PyRuntimeState;
|
||||
|
||||
/* --- PyStatus ----------------------------------------------- */
|
||||
|
||||
|
|
@ -60,7 +61,7 @@ PyAPI_FUNC(PyObject*) _PyWideStringList_AsList(const PyWideStringList *list);
|
|||
|
||||
/* --- _PyArgv ---------------------------------------------------- */
|
||||
|
||||
typedef struct {
|
||||
typedef struct _PyArgv {
|
||||
Py_ssize_t argc;
|
||||
int use_bytes_argv;
|
||||
char * const *bytes_argv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue