<i>load tclreg.dll in cygwin tclsh</i> status still Open with 4 other changes
by
.
D 2012-03-20T17:54:27
J icomment Implementation\sfor\sTclWinGetPlatformId,\nTcl_WinUtfToTChar\sand\sTcl_WinTCharToUtf\ndone\sand\scommitted\sto\score-8-4-branch,\ncore-8-5-branch\sand\strunk.\n\n(Since\scygwin\snow\sswitched\sto\stcl\s8.5,\sit\nwould\snot\shave\sbeen\snecessary\sto\sdo\sit\nfor\sTcl\s8.4,\sbut\sit\sworked,\sso\swhy\snot....)\n\nAdded\sa\sdummy\sTclWinCPUID\stoo,\sbecause\nthis\sfunction\sis\sin\sslot\s29,\sthe\slast\swin32\nslot.\swin32\shas\smore\sslots\sthan\sunix,\sand\nthis\sway\sall\sunused\sslots\swill\sbe\sset\sto\nNULL\sin\sstead\sof\ssome\srandom\svalue.\nAnd...\sTclWinCPUID\sis\sintel-specific,\snot\nWindows-specific:\sit\scan\sbe\simplemented\non\sUNIX\sand\scygwin\sas\swell,\sthe\sonly\nrequirement\sis\sthat\sit\shas\san\sIntel\s(or\sAMD)\nprocessor.\sThe\sdefault\simplementation\nsimply\sreturns\sTCL_ERROR.\n\nThe\sfunctions\sTcl_WinUtfToTChar\sand\nTcl_WinTCharToUtf\shad\sthe\sproblem\nthat\sMAC_OSX\shas\sall\sUNIX\sfunctions\nas\swell,\splus\sits\sown.\sAdding\sUNIX\nstub\sentries\swould\smean\sthat\sthe\ntwo\sfunctions\sTcl_MacOSXOpenBundleResources\nand\sTcl_MacOSXOpenVersionedBundleResources\nwould\sshift\sup!!\s\sSo\sI\sused\sthe\strick\sto\sput\nthe\stwo\snew\sfunctions\sin\sthe\splace\sof\sthe\nmax\sfunctions.\sTricky,\sbut\sit\sworks.\n\nSo\sthe\sTcl_MacOSXOpenBundleResources\nstub\sentry\shas\sits\sown\sfunction\son\sOSX,\sit\ncontains\sthe\sfunction\sTcl_WinUtfToTChar\non\scygwin,\sand\sit\shas\sNULL\sfor\sother\nUNIXes.\sThis\smakes\sthe\sfunction\nTcl_WinUtfToTChar\seffectively\shidden\nfrom\sCygwin,\sbut\s-\shey\s-\sthat's\sexactly\nwhat\swe\swant\sbecause\sit\sshould\sonly\nbe\scallable\sby\swin32\sextensions.\n\nKeeping\sopen,\sbecause\stclInt.decls\ncontains\smore\sfunctions\sthat\scould\nbe\scalled\sby\swin32\sextensions.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3508771fffffffffffffffffffffffffffffffff
U nijtmans
Z a5cbbc5bbf2cb884980420d118655987