Skip to content
Tcl Source Code Artifact [47c841eff5]
Login

Artifact [47c841eff5]

Artifact 47c841eff59c718917d594675ea7bb46568bc80a:

Ticket change [47c841eff5] - Ticket [875701ffffffffff|875701ffff] <i>ver 4 update for Tcl_ChannelType to support cut/splice</i> status still Open with 4 other changes by davygrvy on 2004-01-17 03:00:52.
D 2004-01-17T03:00:52
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nJust\sdiscovered\ssomething\sinteresting.\n\nIf\sI\screate\sa\sv4\sdriver\sin\san\sextension\sand\sload\sit\sinto\s8.4,\s\nTcl_ChannelVersion\sincorrectly\sreturns\s\nTCL_CHANNEL_VERSION_1\srather\sthan\s\nTCL_CHANNEL_VERSION_3\n\nThe\sproper\slogic,\sI\sthink\swould\sbe\sto\sadd\sa\sceiling\sexpecting\s\nmore\srevisions\sin\sthe\sfuture.\s\sExample:\n\nTcl_ChannelTypeVersion\nTcl_ChannelVersion(chanTypePtr)\n\s\s\s\sTcl_ChannelType\s*chanTypePtr;/*\sPointer\sto\schannel\s\ntype.\s*/\n{\n\s\s\s\sif\s(chanTypePtr->version\s==\sTCL_CHANNEL_VERSION_2)\s{\nreturn\sTCL_CHANNEL_VERSION_2;\n\s\s\s\s}\selse\sif\s(chanTypePtr->version\s==\s\nTCL_CHANNEL_VERSION_3)\s{\nreturn\sTCL_CHANNEL_VERSION_3;\n\s\s\s\s}\selse\sif\s(chanTypePtr->version\s==\s\nTCL_CHANNEL_VERSION_4)\s{\nreturn\sTCL_CHANNEL_VERSION_4;\n\s\s\s\s/*\sreserve\sthis\sspace\sfor\sfuture\srevisions.\s*/\n\s\s\s\s}\selse\sif\s(chanTypePtr->version\s<\s15)\s{\nreturn\sTCL_CHANNEL_VERSION_4;\n\s\s\s\s}\selse\s{\n/*\n\s*\sIn\s<v2\schannel\sversions,\sthe\sversion\sfield\sis\s\noccupied\n\s*\sby\sthe\sTcl_DriverBlockModeProc\n\s*/\nreturn\sTCL_CHANNEL_VERSION_1;\n\s\s\s\s}\n}\n\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 875701ffffffffffffffffffffffffffffffffff
U davygrvy
Z 91a54c432d919bd93de9e1b994ab5c84