.
D 2010-03-01T17:33:12
J icomment \n\nallow_comments\s-\s1\n\nThere\sare\stwo\sissues.\s1)\sNot\sall\slinkers\streat\ssymbols\sfor\sstructures\sthe\ssame\sas\ssymbols\sfor\sfunctions.\s2)\sThere's\sonly\stwo\ssupported\sbuild\smethods\sin\sgeneral:\swith\sstubs\sthrough\sthe\sstub\stable\spointer\sobtained\sduring\sthe\scall\sto\sTcl_InitStubs\s(as\simplemented\sin\sthe\sstub\slibrary)\sor\swithout\sstubs\sthrough\sdirectly\saccessing\sthe\sfunctions\s(when\syou\slink\sdirectly\sagainst\sthe\sTcl\slibrary).\n\nConsequently,\sthe\stclStubs\svariable\sis\sto\snever\sbe\sexported\sfrom\sthe\slibrary,\sand\sI\ssee\sthat\sit\shas\sthe\scorrect\slinkage\snow;\sgood.\sSimilarly,\stclStubsPtr\sis\salso\sto\sbe\sMODULE_SCOPE\s(though\sthe\smodule\sscope\sin\squestion\sis\sthe\sclient\slibrary,\snot\sTcl);\sagain,\sit\slooks\slike\sthe\slinkage\sis\scorrect.\n\nGenerally,\sfor\sany\ssymbol\sthe\slinkage\sshould\sbe\sone\sof\sinternal-to-function,\s'static',\s'MODULE_SCOPE'\sor\s'EXTERN'.\sNon-function\ssymbols\sshould\snever\sbe\sEXTERN\sbecause\sof\sweird\slinker\sissues\s(which\sare\sstupid,\sbut\snot\ssomething\swe\sshould\stry\sto\sfix;\swe\sdon't\swant\sto\sbe\sin\sthe\sbusiness\sof\smaking\sfull\stoolchains!)\sand\shardly\sany\sfunction\ssymbols\sshould\sbe\sEXTERN\seither.\sIf\swe\sstick\sto\sthese\srules,\sthen\smost\sof\sthe\spain\sgoes\saway.\n
J login dkf
J mimetype text/plain
J username dkf
K 2959713fffffffffffffffffffffffffffffffff
U dkf
Z 4aeca00be610efee629ed6c5eb7dd513