Skip to content
Tcl Source Code Artifact [d9c0c56a5c]
Login

Artifact [d9c0c56a5c]

Artifact d9c0c56a5c4eab439477d68acb27a349ed66178d:

Ticket change [d9c0c56a5c] - Ticket [1104873fffffffff|1104873fff] <i>missing TCL_STORAGE_CLASS ?</i> status still Open with 4 other changes by mjdonahue on 2005-02-02 10:58:21.
D 2005-02-02T10:58:21
J icomment Logged\sIn:\sYES\s\nuser_id=1210132\n\nThere\sare\stwo\sissues\shere.\n\nISSUE\s1:\s\sCurrently,\sthe\sTcl_PackageInitProc\stypedef\sis\n\n\s\s\stypedef\sint\s(Tcl_PackageInitProc)\s_ANSI_ARGS_((Tcl_Interp\n*interp));\n\nI\ssuggest\sthat\sthis\sis\sincorrect,\sand\sshould\smore\sproperly\sbe\n\n\s\s\stypedef\sTCL_STORAGE_CLASS\sint\s(Tcl_PackageInitProc)\n_ANSI_ARGS_((Tcl_Interp\s*interp));\n\nReferring\sto\sthe\sURL\smentioned\sby\sdavygrvy,\nhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/\nvccelng/htm/msmod_17.asp,\sthe\sfull\ssentence\sreads:\n\nUnlike\sthe\s__near\sand\s__far\skeywords,\swhich\sactually\saffect\nthe\stype\sof\sobject\sor\sfunction\s(in\sthis\scase,\s2-\sand\s4-byte\naddresses),\sthese\sstorage-class\sattributes\sdo\snot\sredefine\nthe\stype\sattributes\sof\sthe\sobject\sitself.\n\nThe\sreference\shere\sis\sto\sa\sparticular\ssubset\sof\s__declspec\nmodifiers\s(including\sdllimport\sand\sdllexport).\s\sThis\swould\nappear\sto\simply\sthat\sother\sstorage-class\sattributes\smay\nredefine\sthe\stype\sattribute.\s\sFor\sthis\sreason,\sI\sbelieve\nthat\sTCL_STORAGE_CLASS\sshould\sbe\sincluded\sin\sthe\nTcl_PackageInitProc\stypedef.\s\sCurrently,\sTCL_STORAGE_CLASS\nis\sdefined\sto\sbe\seither\sempty\sor\n__declspec(dllimport/dllexport).\s\sEither\sway,\sthis\sshouldn't\naffect\sthe\stype\sattribute\s(as\spointed\sout\sby\sdavygrvy),\sso\nthis\schange\sshouldn't\sbreak\sanything.\n\nISSUE\s2:\sThe\sOpen\sWatcom\scompiler\suses\sby\sdefault\sa\ndifferent\scalling\sconvention\sthan\sMicrosoft\sVC.\s\sOpen\sWatcom\ndoes\ssupport\sthe\sVC\scalling\sconvention,\sbut\syou\shave\sto\nspecify\swhen\sa\sfunction\sis\susing\sthat\sconvention.\s\sThis\sdoes\nchange\sthe\stype\sattribute,\sso\sit\sseems\ssensible\sto\sput\sthat\ninformation\sinto\sthe\sTCL_STORAGE_CLASS\smacro.\s\sI\sam\nuncertain\sas\sto\sthe\sbest\sway\sto\sdo\sthis,\sbut\sI\sfind\sthat\sif\nI\sput\n\n\s\s\s__declspec(__cdecl)\n\ninto\sTCL_STORAGE_CLASS,\sthen\salong\swith\sthe\schange\ssuggested\nin\sISSUE\s1\sabove,\sI\scan\ssuccessfully\slink\scode\scompiled\swith\nOpen\sWatcom\sagainst\sa\sTcl\sDLL\sbuilt\swith\sVC.\s\sOf\scourse,\nthis\sis\sa\sWatcom\sspecific\sextension,\sso\sit\sshould\sbe\swrapped\nwith\s#if\sdefined(__WATCOMC__)\sguards.\s\sThis\sseems\sreasonable\ngiven\sthe\scompiler-specific\scode\salready\sin\sthe\nDLLIMPORT/DLLEXPORT\sdefinitions.\n\nActually,\sI\sneed\s__declspec(__cdecl)\sto\slink\sagainst\nanything\sin\sthe\sTcl\sDLL's.\s\sMaking\sonly\sthis\schange\smy\scode\nbuilds\scompletely\s*except*\sfor\sthe\sproblem\saddressed\sin\nISSUE\s1,\swhich\slooks\slike\sa\sbug\sto\sme\sregardless\sof\swhether\none\swants\sto\sadd\sWatcom\ssupport.\s\sISSUE\s2\sis\sclearly\sa\nWatcom\scompiler\sspecific\smatter.\n\n
J login mjdonahue
J mimetype text/plain
J username mjdonahue
K 1104873fffffffffffffffffffffffffffffffff
U mjdonahue
Z 6cf96df9da0f3866e59ca1037c16c2e1