Skip to content

Commit 125513a

Browse files
committed
move headers to sysmodule.h
1 parent c7a49b4 commit 125513a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Include/osmodule.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ extern "C" {
1111
PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path);
1212
#endif
1313

14-
#if !defined(Py_LIMITED_API)
15-
typedef struct {
16-
FILE* perf_map;
17-
PyThread_type_lock map_lock;
18-
} PerfMapState;
19-
20-
PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void);
21-
22-
PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(const void *code_addr, unsigned int code_size, const char *entry_name);
23-
24-
PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);
25-
#endif
26-
2714
#ifdef __cplusplus
2815
}
2916
#endif

Include/sysmodule.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ Py_DEPRECATED(3.11) PyAPI_FUNC(int) PySys_HasWarnOptions(void);
2929
Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
3030
PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
3131

32+
#if !defined(Py_LIMITED_API)
33+
typedef struct {
34+
FILE* perf_map;
35+
PyThread_type_lock map_lock;
36+
} PerfMapState;
37+
38+
PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void);
39+
40+
PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(const void *code_addr, unsigned int code_size, const char *entry_name);
41+
42+
PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);
43+
#endif
44+
3245
#ifndef Py_LIMITED_API
3346
# define Py_CPYTHON_SYSMODULE_H
3447
# include "cpython/sysmodule.h"

0 commit comments

Comments
 (0)