Skip to content
Tcl Source Code Artifact [cdc2f9ba0f]
Login

Artifact [cdc2f9ba0f]

Artifact cdc2f9ba0fd7b611893f365c2809aec429a488d5:

Ticket change [cdc2f9ba0f] - Ticket [823486ffffffffff|823486ffff] <i>TIP 100 Reference Implementation - Unload</i> status still Open with 4 other changes by vincentdarley on 2003-10-14 22:51:10.
D 2003-10-14T22:51:10
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nI\shave\sto\sagree\swith\sJoe\s--\sthe\schanges,\sif\sany,\sto\smake\nthis\swork\swith\svfs\sare\slikely\sto\sbe\ssmall,\sand\sa\sgood\sTIP\nshould\sreally\smesh\swith\swhat\sTcl\sprovides\sin\sa\srelatively\ncomplete\sway.\n\nHaving\ssaid\sall\sthat,\sI'm\snot\s100%\ssure\smuch\sextra\sis\nactually\sneeded.\s\sThis\sis\sbecause\sthe\scurrent\svfs\nimplementations\sdon't\sactually\sknow\sthat\sa\s.dll\shas\sbeen\nloaded,\sbecause\swe\scan't\sload\sdirectly\sand\sso\sinstead\sa\ncopy-to-native-and-load\sapproach\sis\sused.\s\sOn\sUnices\swhere\nthe\stemp\scopy\scan\sbe\sdeleted\simmediately\s(line\s2621\sof\ntclIOUtil.c)\sGeorge's\scode\swill\sdefinitely\swork\s100%.\s\sOn\nWindows/Mac/Unices-which-can't-delete\sthen\swe\sfall\sthrough\nto\sa\ssetup\swhere\sTcl\swill\sdelete\sthe\sfile\son\sexit.\sIn\sthis\ncase\sI\sbelieve\sthe\spatch's\suse\sof\sTclpFindSymbol\swill\sfail\nbecause\sit's\snot\soperating\son\sa\snative\sload\shandle,\sbut\nrather\son\san\s'FsDivertLoad*'\sstructure\swhich\scontains\sa\nnative\sload\shandle.\n\nIt\sis\sthis\scase\sthat\sought,\sprobably,\sto\sbe\sdealt\swith\nbetter\sby\sthe\spatch.\s\sI\sbelieve\sthe\ssolution\sis\sto\smake\sa\nnew\sTcl_FSLoadFileEx\swhich\sis\slike\sTcl_FSLoadFile\sexcept\sit\ncan\sreturn\s4\sprocs\sptrs\s(2\sfor\sinit,\s2\sfor\suninit),\sfor\s4\ndifferent\ssymbols\sthat\sit\sis\sgiven\s--\sin\sfact\sfor\sfuture\nexpandability,\sit\smight\sbe\sbetter\sif\sit\sused\san\sarray\sof\nprocPtrs/symbol\snames\sand\sa\snumber\sof\selements.\n\nThe\sold\sTcl_FSLoadFile\scan\sjust\swrap\saround\sthis\snew\sproc\nand\sbe\smade\savailable\spurely\sfor\sbackwards\scompatibility.\n\nThen\sthe\sTcl\scommand\s'load'\sshould\scall\s'Tcl_FSLoadFileEx'\nand\sthe\srest\sof\sthe\spatch\sis\sbasically\sthe\ssame.\n\nhope\sthat\smakes\ssense\s--\sit\sjust\smeans\sthere\sis\sone\smore\nfunction\sto\sbe\sadjusted\sin\stclIOUtil.c.\n\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 823486ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 4163a7af67235d634928b50da9d0a6b3