D 2008-11-10T16:42:28 J icomment Hmm,\smaybe\sthe\sreason\sis\sthat\sit\sis\snot\seasy\sto\stie\sany\snew\sallocations\sto\sthe\sresult\sof\sthe\sparsing.\sIndeed\sthe\srest\sof\stclParse.c\sarranges\sfor\stoken\scells\sto\sbe\sallocated/reallocated\sin\sa\scontiguous\sarray,\swith\stheir\smember\sstrings\spointing\sinto\sthe\soriginal\ssource.\sSo,\sif\swe\s(correctly)\sdecide\sto\scall\sTclCopyAndCollapse\sfor\seach\s"found\selement",\swe'll\sneed\sto\sspit\sout\sthe\sresulting\sbackslash-subst'ed\sstrings\sin\ssome\sspace\sthat\swill\sdie\sat\sTcl_FreeParse\stime.\sMaybe\swe\sneed\sto\scomplexify\sthe\sTcl_Parse\sstruct\sa\sbit\sfor\sthat\s(eg\sby\skeeping\sa\ssingle\sgrowing\smalloc'ed\sblock\ssimilar\sto\sthe\stoken\sarray\sbut\sfor\smassaged\sstrings).\sOr\smaybe\sthis\sis\spremature\soptimization\sagain,\sand\sa\slinked\slist\sof\sindividual\smallocs\swill\sdo...\n\nMiguel,\sdo\syou\sconfirm/infirm\s?\n\n J login ferrieux J mimetype text/plain J username ferrieux K 2251175fffffffffffffffffffffffffffffffff U ferrieux Z c82db14ed8cc9aeb752381d8aecef9d3