Skip to content
Tcl Source Code Artifact [30c31063e2]
Login

Artifact [30c31063e2]

Artifact 30c31063e2801f42254ce46c7c7095359f463195:

Ticket change [30c31063e2] - Ticket [1055668fffffffff|1055668fff] <i>removal of exported internals from tclInt.h (EXTERN macro)</i> status still Open with 4 other changes by davygrvy on 2004-10-31 09:39:33.
D 2004-10-31T09:39:33
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nOk,\sTcl_Main\sreturned\sto\sas\sis.\n\nNew\spatch\sattached.\s\sThis\snow\suses\sTCL_INTERN()\sto\sdeclare\ninternal\sfunctions\snot\sdestined\sto\sbe\sexported\s(nor\simported\nby\sa\sclient\sof\sthe\sAPI).\s\sI\sdecided\sto\shave\sthe\smacro\stake\nthe\sreturn\stype\sas\san\sargument\sbecause\ssome\sspecial\nattributes\ssuch\sas\scalling\sconvention\sare\splaced\safter\sthe\nreturn\stype.\s\sI'mjust\strying\sto\sthink\sinto\sthe\sfuture\sby\ndoing\sthis.\n\nI\salso\sdecided\sto\schange\sthe\suse\sof\sEXTERN\swithin\sthe\ntcl*Decl.h\sfiles\sto\sbe\sTCL_EXTERN()\sand\stake\sthe\sreturn\stype\nas\san\sargument\sas\swell.\n\nTo\scheck\sthe\sviability\sof\sthis\smodification,\sI\sappended\n__cdecl\sto\sthe\s#defines\slike\sso:\n\n#define\sTCL_EXTERN(RTYPE)\sTCL_EXT_EXTERN_C\sTCL_STORAGE_CLASS\nRTYPE\s__cdecl\n#define\sTCL_INTERN(RTYPE)\sTCL_INT_EXTERN_C\sRTYPE\s__cdecl\n\nThe\spatch\sdoes\snot\scontain\sthis,\sas\sI\sdon't\sfeel\sit\sisn't\nneeded,\sbut\swas\sonly\sused\sas\sa\scheck\sshould\sone\sday,\nadditional\sattributes\smight\sbe\splaced\sthere\s(see\stip#60\nprose;\signore\sthe\sold\spatch\sit\scontains).\n\nAlso\sused\sDaniel\sSteffen's\sidea\sto\sreplace\s'extern'\swith\n'__private_extern__'\swhen\sdeclaring\sshared,\sbut\snot\sexported\nfunctions.\s\sIt\sis\suntested\sand\swill\sneed\sa\sconfigure\scheck\nto\sset\sHAVE_PRIVATE_EXTERN.\n\nI\sdecided\sto\splace\sthe\s#define\sof\sEXTERN\swithin\sa\s#ifndef\nTCL_NO_DEPRECATED/#endif\sblock.\s\sI\scan\stake\sit\sout\sof\sthat\nblock\sif\sit\sis\sthought\snot\sto\sbe\sproper.\n\nSummary:\s\sIt\slooks\sgood\sand\sthe\sthree\sclasses\sof\spublic,\nprivate,\sand\sinternal\slook\sclear\sto\sme\snow.\s\sI\shope\sthis\nhelps\sothers\sworking\son\sthe\score\sof\sthe\sdistinct\sdifference\nbetween\sa\sprivate\sfunction\sin\sthe\sStubs\stable\sand\san\ninternal\sfunction\snot\sexported.\s\sThat\sdistinction\swas\snever\nclear\sbefore.\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 1055668fffffffffffffffffffffffffffffffff
U davygrvy
Z cd6252117a8d484b1c4e46113552dd69