.
D 2000-10-26T00:45:06
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2098\sRFE\nVersion:\s8.1\nSubmitDate:\s'1999-05-19'\nLastModified:\s'1999-08-06'\nSeverity:\sLOW\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s2101\s2257\nOS:\sSolaris\nOSVersion:\s2.5.1\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-08-06'\n\n\nName:\nJeffrey\sHobbs\n\nCVS:\nMay\s17,\stclUtil.c\s$Id:\stclUtil.c,v\s1.11\s1999/05/06\s19:21:11\sstanton\sExp\s$\n\nCustomShell:\nmod\score?\snot\sme...\n\nComments:\nIn\stests\son\slarger\slists,\sthis\sactually\stakes\sa\sbit\smore\stime\sto\sreturn\n\s\s\s\sto\sassemble\sand\sreturn\sthe\sobject\sthan\sthe\sregular\sbytes\sconcat\smode.\n\s\s\s\sHowever,\swhen\sthe\sreturned\sobject\sis\snext\sused\sas\sa\slist\s(like\swith\n\s\s\s\sforeach),\sthere\sis\sa\snotable\stime\ssavings.\n\s\s\s\s\n\s\s\s\sAgain,\sthis\sonly\saffects\scalls\sto\sconcat\swhere\sall\sargs\spassed\sare\n\s\s\s\salready\srecgonized\slist\sobjects.\s\sThis\spasses\sall\stests,\sand\sdoesn't\n\s\s\s\sbreak\sany\ssyntax\slogic.\n\nDesiredBehavior:\nAs\spointed\sout\son\sc.l.tcl,\sconcat\sactually\sconverts\severything\sto\n\s\s\s\sstrings\n\s\s\s\sand\sreturns\sa\sstring,\sas\sopposed\sto\swhat\sthe\sdocs\ssay.\s\sThis\sfeatures\n\s\s\s\senhancement\sinvolves\ssituations\swhere\sconcat\swas\spassed\sonly\sobjects\sof\n\s\s\s\sthe\slist\stype.\s\sIn\sthis\scase,\sit\sconcats\sthem\stogether\sinto\sone\slist,\n\s\s\s\sand\sreturns\san\sobject\sof\stype\slist.\n\nPatch:\nThe\sfollowing\sneeds\sto\sbe\sinserted\sas\sthe\sfirst\scode\sin\sTcl_ConcatObj\nin\stclUtil.c:\n\n\s\s\s\sfor\s(i\s=\s0;\s\si\s<\sobjc;\s\si++)\s{\nif\s(objv[i]->typePtr\s!=\s&tclListType)\s{\n\s\s\s\sbreak;\n}\n\s\s\s\s}\n\s\s\s\sif\s(i\s==\sobjc)\s{\nTcl_Obj\s**listv;\nint\slistc;\n/*\n\s*\sAll\sthe\sitems\sare\sof\slist\stype,\sconcat\sthem\stogether\n\s*\sas\slists,\sand\sreturn\sas\sa\slist\sobj\n\s*/\nobjPtr\s=\sTcl_NewListObj(0,\sNULL);\nfor\s(i\s=\s0;\s\si\s<\sobjc;\s\si++)\s{\n\s\s\s\s/*\n\s\s\s\s\s*\sNo\scheck\sis\smade\son\sthe\sresult\scode,\sas\swe\schecked\n\s\s\s\s\s*\sabove\sthat\sthey\sare\sall\sof\slist\stype...\n\s\s\s\s\s*/\n\s\s\s\sTcl_ListObjGetElements(NULL,\sobjv[i],\s&listc,\s&listv);\n\s\s\s\sTcl_ListObjReplace(NULL,\sobjPtr,\sINT_MAX,\s0,\slistc,\slistv);\n}\nreturn\sobjPtr;\n\s\s\s\s}\n\nPatchFiles:\ngeneric/tclUtil.c\n\n\n\n
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title concat\ssupport\sfor\slist\sobjects
J type Bug
K 217867ffffffffffffffffffffffffffffffffff
U nobody
Z 715621ed6c027a5978ebc73aa75fb8fa