Skip to content
Tcl Source Code Artifact [dc1bc7c7d5]
Login

Artifact [dc1bc7c7d5]

Artifact dc1bc7c7d5460be327a3575cd3eab08a282b745c:

Ticket change [dc1bc7c7d5] - Ticket [1290457fffffffff|1290457fff] <i>TEOVI refactoring</i> status still Open with 4 other changes by tallniel on 2006-06-30 17:47:31.
D 2006-06-30T17:47:31
J icomment \n\nFile\sAdded\s-\s183405:\steovi-29Jun06.patch\n\nLogged\sIn:\sYES\s\nuser_id=102050\n\nUploading\snewer\spatch:\n\nThe\snew\spatch\srefactors\sthings\sagain\sto\screate\sa\snew\nTclInvokeCommand\sfunction\sthat\scan\sbe\sused\sin\splace\sof\sthe\nvarious\splaces\swhere\sthe\score\sdirectly\scalls\sa\ncmdPtr->objProc\s(e.g.\s582506).\sThe\snew\sfunction\sis\snot\ndeclared\s"static",\sbut\sI've\snot\sput\sa\sdeclaration\sin\sany\nheader\sfile\sas\sI\swasn't\ssure\swhich\swould\sbe\sappropriate\n(tclCompile.h?).\sFor\sinstance,\sto\sfix\s582506\syou\scan\schange\nInvokeImportedCmd\s(in\stclNamesp.c)\sfrom:\n\n\s\s\s\sreturn\s(*realCmdPtr->objProc)(realCmdPtr->objClientData,\ninterp,\n\s\s\s\s\s\s\s\sobjc,\sobjv);\n\nto:\n\n\s\s\s\sreturn\sTclInvokeCommand(interp,\sobjc,\sobjv,\srealCmdPtr,\s0);\n\n(Actually,\sthis\sonly\sfixes\sthe\soriginal\sproblem\sof\s582506\s--\nmiguel's\sadded\scomment\sis\snot\sfixed\sas\sthat\srequires\sfurther\nchanges\sto\show\sexecution\straces\sare\sstored/invoked).\n\nI've\salso\sadded\sa\sTODO\scomment\sin\sthe\ssource\sfor\nTclEvalObjvInternalUnknownHandler.\sIn\sthe\soriginal\scode\sthis\ncalls\sTcl_GetCommandFromObj\sto\scheck\sif\sthe\shandler\sexists\nand\sthen\scalls\sTEOVI\sto\sinvoke\sit\s(which\sthen\scalls\sT_GCFO\nagain).\sI\sthink\sthis\scan\sbe\sreplaced\sby\sa\scall\sto\sthe\snew\nTclInvokeCommand,\swhich\swould\savoid\sthe\sextra\scall\sto\sT_GCFO\nas\swe\scould\sjust\spass\sin\sthe\sCommand\sfrom\sthe\sprevious\scall.\nHowever,\sthe\scall\sto\sTEOVI\salso\spasses\sin\sthe\s*original*\ncommand+args\sstring\swhen\scalling\sthe\sunknown\shandler.\sI'm\nnot\ssure\sif\sthis\sis\sever\sactually\sused\s(it\sis\spassed\sto\nfurther\sexecution\strace\shandlers,\sbut\sI\shaven't\sdug\nfurther),\sso\sI'm\snot\ssure\sif\sthis\sreplacement\scan\sbe\smade\nsafely.\n\nThe\snew\spatch\spasses\sthe\stest-suite,\s*EXCEPT*\sit\scauses\sa\nsegfault\sin\sone\stest\sin\sstack.test\son\smy\ssystem,\sbut\sonly\nwhen\ssymbols\sare\s*disabled*.\sThe\ssegfault\sis\sfrom\sblowing\nthe\sC\sstack,\sand\sis\sobviously\scaused\sby\sthe\sextra\sfunction\ncall\sadded\sto\sthe\sstack\s(TEOVI\s->\sTEOVIInvokeCommand).\nAdding\san\s"inline"\skeyword\sto\sTEOVIIC\sfixes\sthis\sfor\sme,\sbut\nis\sC99/GCC-specific.\sAlternatives\swould\sbe\seither\sto\sinline\nthis\sfunction\smanually\sagain\s(still\sleaves\ssome\srefactoring,\nwhich\smay\sbe\sworth\sit),\sor\sa\sfurther\srefactoring.\sThe\nfurther\srefactoring\swould\ssplit\sinto\sbefore/after\sfunctions\nfor\staking\scare\sof\straces\setc,\sbut\sleave\sthe\sactual\scalling\nof\scmdPtr->objProc\sto\sthe\scaller\s(TEOVI\sor\nTclInvokeCommand).\sI\scan\sproduce\sa\sfurther\spatch\sfor\sthis\sif\nyou\swant.\s\n
J login tallniel
J mimetype text/plain
J username tallniel
K 1290457fffffffffffffffffffffffffffffffff
U tallniel
Z 65ec1c8dcb9b7018ca5788ea21063fb6