mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-131591: Add Py_ prefix to MAX_SCRIPT_PATH_SIZE; remove unprefixed struct tag (GH-135924)
Names/macros defined in public headers should have `Py`/`_Py` prefixes.
This commit is contained in:
parent
e3ea6f2b3b
commit
a1da208eec
3 changed files with 6 additions and 5 deletions
|
@ -28,10 +28,10 @@ typedef int (*Py_tracefunc)(PyObject *, PyFrameObject *, int, PyObject *);
|
|||
#define PyTrace_OPCODE 7
|
||||
|
||||
/* Remote debugger support */
|
||||
#define MAX_SCRIPT_PATH_SIZE 512
|
||||
typedef struct _remote_debugger_support {
|
||||
#define Py_MAX_SCRIPT_PATH_SIZE 512
|
||||
typedef struct {
|
||||
int32_t debugger_pending_call;
|
||||
char debugger_script_path[MAX_SCRIPT_PATH_SIZE];
|
||||
char debugger_script_path[Py_MAX_SCRIPT_PATH_SIZE];
|
||||
} _PyRemoteDebuggerSupport;
|
||||
|
||||
typedef struct _err_stackitem {
|
||||
|
|
|
@ -368,7 +368,7 @@ typedef struct _Py_DebugOffsets {
|
|||
.remote_debugging_enabled = offsetof(PyInterpreterState, config.remote_debug), \
|
||||
.debugger_pending_call = offsetof(_PyRemoteDebuggerSupport, debugger_pending_call), \
|
||||
.debugger_script_path = offsetof(_PyRemoteDebuggerSupport, debugger_script_path), \
|
||||
.debugger_script_path_size = MAX_SCRIPT_PATH_SIZE, \
|
||||
.debugger_script_path_size = Py_MAX_SCRIPT_PATH_SIZE, \
|
||||
}, \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue