diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-12 05:01:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-12 05:01:04 (GMT) |
commit | 4ff4072eaa5652ad04b711a62839002a865b6358 (patch) | |
tree | 76e9bed3392c20ce14c245bc43f2ec98ceaf0b54 /generic/tclStubInit.c | |
parent | 1f46b14efb4cff5cd99eecd20058ec3d98b283a5 (diff) | |
download | tcl-4ff4072eaa5652ad04b711a62839002a865b6358.zip tcl-4ff4072eaa5652ad04b711a62839002a865b6358.tar.gz tcl-4ff4072eaa5652ad04b711a62839002a865b6358.tar.bz2 |
Rename the memory routines so that Tcl_Alloc/Tcl_Free/etc become the recommendednovem_rename_memory_API
things for extensions and embedders to call, instead of ckalloc/ckfree/etc.
Tcl_Alloc, etc. are macros that can be configured for memory debuggin, as ckalloc, etc.
have been and continue to be.
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r-- | generic/tclStubInit.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index c836f45..d78d7f1 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -22,9 +22,9 @@ * Remove macros that will interfere with the definitions below. */ -#undef Tcl_Alloc -#undef Tcl_Free -#undef Tcl_Realloc +#undef Tcl_MemAlloc +#undef Tcl_MemFree +#undef Tcl_MemRealloc #undef Tcl_NewBooleanObj #undef Tcl_NewByteArrayObj #undef Tcl_NewDoubleObj @@ -625,9 +625,9 @@ const TclStubs tclStubs = { Tcl_PkgProvideEx, /* 0 */ Tcl_PkgRequireEx, /* 1 */ Tcl_Panic, /* 2 */ - Tcl_Alloc, /* 3 */ - Tcl_Free, /* 4 */ - Tcl_Realloc, /* 5 */ + Tcl_MemAlloc, /* 3 */ + Tcl_MemFree, /* 4 */ + Tcl_MemRealloc, /* 5 */ Tcl_DbCkalloc, /* 6 */ Tcl_DbCkfree, /* 7 */ Tcl_DbCkrealloc, /* 8 */ @@ -1074,9 +1074,9 @@ const TclStubs tclStubs = { Tcl_CommandTraceInfo, /* 425 */ Tcl_TraceCommand, /* 426 */ Tcl_UntraceCommand, /* 427 */ - Tcl_AttemptAlloc, /* 428 */ + Tcl_AttemptMemAlloc, /* 428 */ Tcl_AttemptDbCkalloc, /* 429 */ - Tcl_AttemptRealloc, /* 430 */ + Tcl_AttemptMemRealloc, /* 430 */ Tcl_AttemptDbCkrealloc, /* 431 */ Tcl_AttemptSetObjLength, /* 432 */ Tcl_GetChannelThread, /* 433 */ |