.
D 2000-10-26T05:11:46
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5987\sBug\nVersion:\s8.4a1\nSubmitDate:\s'2000-07-06'\nLastModified:\s'2000-10-25'\nSeverity:\sMED\nStatus:\sUnAssn\nSubmitter:\stechsupp\nOS:\sAll\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nPaul\sDuffin\n\nCVS:\n26-Jun-2000\n\nObservedBehavior:\nIn\sabout\sversion\s8.1\swhen\scompiled\swith\s-DTCL_MEM_DEBUG\sTcl_Alloc\sused\sto\sbe\sa\smacro\swhich\scalled\sTcl_DbCkalloc\spassing\sthe\sfile\sand\sline\snumber\sat\swhich\sit\swas\scalled.\sThis\schanged\ssometime\safter\sversion\s8.1.\sThere\sis\sno\spoint\sin\shaving\stwo\ssets\sof\smemory\sallocation\sroutines,\sone\sof\swhich\sdoes\said\nwith\sdebugging\sand\sone\sof\swhich\sdoes\snot.\n\nDesiredBehavior:\nTcl_Alloc\sshould\sbehave\slike\sckalloc,\sin\sfact\sckalloc\sshould\sbe\sdeprecated\sin\sfavour\sof\sTcl_Alloc.\n\nPatch:\nIndex:\sscriptics/tcl/generic/tcl.h\ndiff\s-c\sscriptics/tcl/generic/tcl.h:1.1.1.1\sscriptics/tcl/generic/tcl.h:1.1.1.1.4.1\n***\sscriptics/tcl/generic/tcl.h:1.1.1.1Tue\sJul\s\s4\s17:59:22\s2000\n---\sscriptics/tcl/generic/tcl.hTue\sJul\s\s4\s18:41:28\s2000\n***************\n***\s1196,1210\s****\n\s\s#else\s/*\s!TCL_MEM_DEBUG\s*/\n\n\s\s/*\n!\s\s*\sIf\swe\sare\snot\susing\sthe\sdebugging\sallocator,\swe\sshould\scall\sthe\s\n!\s\s*\sTcl_Alloc,\set\sal.\sroutines\sin\sorder\sto\sguarantee\sthat\severy\smodule\n!\s\s*\sis\susing\sthe\ssame\smemory\sallocator\sboth\sinside\sand\soutside\sof\sthe\n!\s\s*\sTcl\slibrary.\n\s\s\s*/\n\n!\s#\s\s\sdefine\sckalloc(x)\sTcl_Alloc(x)\n!\s#\s\s\sdefine\sckfree(x)\sTcl_Free(x)\n!\s#\s\s\sdefine\sckrealloc(x,y)\sTcl_Realloc(x,y)\n\s\s#\s\s\sdefine\sTcl_InitMemory(x)\n\s\s#\s\s\sdefine\sTcl_DumpActiveMemory(x)\n\s\s#\s\s\sdefine\sTcl_ValidateAllMemory(x,y)\n---\s1196,1224\s----\n\s\s#else\s/*\s!TCL_MEM_DEBUG\s*/\n\n\s\s/*\n!\s\s*\sThere\sis\sno\spoint\sin\shaving\stwo\sseperate\ssets\sof\sroutines,\sckalloc\n!\s\s*\sand\sTcl_Alloc\sonly\sone\sof\swhich\sturns\son\sdebugging\sinformation\swhen\n!\s\s*\sthe\sTCL_MEM_DEBUG\scompile\sflag\sis\sdefined.\sThe\sfollowing\smacros\ssimply\n!\s\s*\smap\sckalloc\sto\sTcl_Alloc\sThis\sreverts\sto\sTcl\s8.1\sbehaviour.\n\s\s\s*/\n+\s\s\s\s\s\n+\s#define\sckalloc(x)\sTcl_Alloc(x)\n+\s#define\sckfree(x)\sTcl_Free(x)\n+\s#define\sckrealloc(x,y)\sTcl_Realloc(x,y)\n+\s\s\s\s\s\n+\s#ifdef\sTCL_MEM_DEBUG\n\n!\s/*\n!\s\s*\sDefine\sthe\sTcl_Alloc\smacros\sto\ssupply\sextra\sdebugging\sinformation\n!\s\s*\sto\sthe\sdebug\smemory\sallocator.\n!\s\s*/\n!\s\n!\s#\s\s\sdefine\sTcl_Alloc(x)\sTcl_DbCkalloc(x,\s__FILE__,\s__LINE__)\n!\s#\s\s\sdefine\sTcl_Free(x)\s\sTcl_DbCkfree(x,\s__FILE__,\s__LINE__)\n!\s#\s\s\sdefine\sTcl_Realloc(x,y)\sTcl_DbCkrealloc((x),\s(y),__FILE__,\s__LINE__)\n!\s\n!\s#else\s/*\s!TCL_MEM_DEBUG\s*/\n!\s\n\s\s#\s\s\sdefine\sTcl_InitMemory(x)\n\s\s#\s\s\sdefine\sTcl_DumpActiveMemory(x)\n\s\s#\s\s\sdefine\sTcl_ValidateAllMemory(x,y)\n\nPatchFiles:\ngeneric/tcl.h\n\n\n\n
J foundin obsolete:\s8.4a1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Change\sin\sbehaviour\sof\sTcl_Alloc\swhen\scompiled\swith\s-DTCL_ME
J type Bug
K 219371ffffffffffffffffffffffffffffffffff
U nobody
Z 2482dd4391fa3724b53055b56fb7f913