From 5f1c7cb11e25d9895ebcd88013f8724d7e239143 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Mon, 9 Jul 2018 16:12:31 +0000 Subject: Don't mark ckalloc and friends as deprecate yet, Tk is still heavily using it --- generic/tcl.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/generic/tcl.h b/generic/tcl.h index aa06037..5950c7a 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -2268,18 +2268,15 @@ EXTERN void Tcl_GetMemoryInfo(Tcl_DString *dsPtr); /* *---------------------------------------------------------------------------- - * The following declarations either map Tcl_Alloc and Tcl_Free to malloc and - * free, or they map them to functions with all sorts of debugging hooks - * defined in tclCkalloc.c. + * The following declarations map ckalloc and ckfree to Tcl_Alloc and + * Tcl_Free. */ -#if !defined(TCL_NO_DEPRECATED) || defined(BUILD_tcl) -# define ckalloc Tcl_Alloc -# define ckfree Tcl_Free -# define ckrealloc Tcl_Realloc -# define attemptckalloc Tcl_AttemptAlloc -# define attemptckrealloc Tcl_AttemptRealloc -#endif +#define ckalloc Tcl_Alloc +#define ckfree Tcl_Free +#define ckrealloc Tcl_Realloc +#define attemptckalloc Tcl_AttemptAlloc +#define attemptckrealloc Tcl_AttemptRealloc #ifndef TCL_MEM_DEBUG -- cgit v0.12