diff options
author | mig <mig@noemail.net> | 2011-03-21 14:42:36 (GMT) |
---|---|---|
committer | mig <mig@noemail.net> | 2011-03-21 14:42:36 (GMT) |
commit | 2bf209ea3b307436dedea301e3f8bb4418391af4 (patch) | |
tree | 6f673c749a965f87bd3edcab20ddaebdd2f706f2 /generic/tclInt.h | |
parent | 561f5dfbeb8eb387c1d90c8fb2a2480a4a3c021e (diff) | |
parent | cb77f25ed12c1c50ae7db232f9adebaea7fa3f31 (diff) | |
download | tcl-2bf209ea3b307436dedea301e3f8bb4418391af4.zip tcl-2bf209ea3b307436dedea301e3f8bb4418391af4.tar.gz tcl-2bf209ea3b307436dedea301e3f8bb4418391af4.tar.bz2 |
remove one level of allocator indirection in non-memdebug builds, imported from mig-alloc-reform.
FossilOrigin-Name: d74d7bb0139b82bdb46f3cc9fc240933a1148ded
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 42e2212..53e4323 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -4628,6 +4628,12 @@ typedef struct NRE_callback { #include "tclIntPlatDecls.h" #include "tclTomMathDecls.h" +#if !defined(USE_TCL_STUBS) && !defined(TCL_MEM_DEBUG) +#define Tcl_AttemptAlloc(size) TclpAlloc(size) +#define Tcl_AttemptRealloc(ptr, size) TclpRealloc((ptr), (size)) +#define Tcl_Free(ptr) TclpFree(ptr) +#endif + #endif /* _TCLINT */ /* |