Skip to content

Commit 0c08141

Browse files
committed
Remove _ prefix from struct names.
1 parent 6d3b40a commit 0c08141

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Include/internal/pycore_pystate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@ _Py_RecursionLimit_GetMargin(PyThreadState *tstate)
340340

341341
/* PEP 788 structures. */
342342

343-
struct _PyInterpreterGuard {
343+
struct PyInterpreterGuard {
344344
PyInterpreterState *interp;
345345
};
346346

347-
struct _PyInterpreterView {
347+
struct PyInterpreterView {
348348
int64_t id;
349349
};
350350

Include/pystate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
124124

125125
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= _Py_PACK_VERSION(3, 15)
126126

127-
typedef struct _PyInterpreterGuard PyInterpreterGuard;
128-
typedef struct _PyInterpreterView PyInterpreterView;
127+
typedef struct PyInterpreterGuard PyInterpreterGuard;
128+
typedef struct PyInterpreterView PyInterpreterView;
129129

130130
PyAPI_FUNC(PyInterpreterGuard *) PyInterpreterGuard_FromCurrent(void);
131131
PyAPI_FUNC(void) PyInterpreterGuard_Close(PyInterpreterGuard *guard);

0 commit comments

Comments
 (0)