Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20d0a1a

Browse files
committed
Remove PyMalloc_* symbols. PyObject_Malloc now uses pymalloc if
it's enabled.
1 parent 3e7b893 commit 20d0a1a

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

Include/pymem.h

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -90,36 +90,6 @@ extern DL_IMPORT(void) PyMem_Free(void *);
9090
Note that according to ANSI C, free(NULL) has no effect. */
9191

9292

93-
/* pymalloc (private to the interpreter) */
94-
#ifdef WITH_PYMALLOC
95-
DL_IMPORT(void *) _PyMalloc_Malloc(size_t nbytes);
96-
DL_IMPORT(void *) _PyMalloc_Realloc(void *p, size_t nbytes);
97-
DL_IMPORT(void) _PyMalloc_Free(void *p);
98-
99-
#ifdef PYMALLOC_DEBUG
100-
DL_IMPORT(void *) _PyMalloc_DebugMalloc(size_t nbytes);
101-
DL_IMPORT(void *) _PyMalloc_DebugRealloc(void *p, size_t nbytes);
102-
DL_IMPORT(void) _PyMalloc_DebugFree(void *p);
103-
DL_IMPORT(void) _PyMalloc_DebugDumpAddress(const void *p);
104-
DL_IMPORT(void) _PyMalloc_DebugCheckAddress(const void *p);
105-
DL_IMPORT(void) _PyMalloc_DebugDumpStats(void);
106-
#define _PyMalloc_MALLOC _PyMalloc_DebugMalloc
107-
#define _PyMalloc_REALLOC _PyMalloc_DebugRealloc
108-
#define _PyMalloc_FREE _PyMalloc_DebugFree
109-
110-
#else /* WITH_PYMALLOC && ! PYMALLOC_DEBUG */
111-
#define _PyMalloc_MALLOC _PyMalloc_Malloc
112-
#define _PyMalloc_REALLOC _PyMalloc_Realloc
113-
#define _PyMalloc_FREE _PyMalloc_Free
114-
#endif
115-
116-
#else /* ! WITH_PYMALLOC */
117-
#define _PyMalloc_MALLOC PyMem_MALLOC
118-
#define _PyMalloc_REALLOC PyMem_REALLOC
119-
#define _PyMalloc_FREE PyMem_FREE
120-
#endif /* WITH_PYMALLOC */
121-
122-
12393
#ifdef __cplusplus
12494
}
12595
#endif

0 commit comments

Comments
 (0)