Skip to content
Tcl Source Code Artifact [88e6e9418b]
Login

Artifact [88e6e9418b]

Artifact 88e6e9418b39e16a598d7d33efc586f6eb27c808:

Ticket change [88e6e9418b] - Open ticket [509340ffffffffff|509340ffff]: <i>ClientData set to int* not void* </i> plus 4 other changes by davygrvy on 2002-02-23 14:53:30.
D 2002-02-23T14:53:30
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nforget\s"some\ssystems".\s\sThis\sis\sWin32\swith\sMSVC\sas\sthe\s\ncompiler.\n\nWhat\sis\sthat\stest\sasking?\s\sIs\sit\sasking\sare\syou\sstrict\sANSI\s\nor\sANSI\scompilent\sas\soppossed\sto\spre-ANSI?\n\n#ifndef\s_CLIENTDATA\n#\s\s\sif\sdefined(__STDC__)\s||\sdefined(__cplusplus)\s||\sdefined\n(__BORLANDC__)\ntypedef\svoid\s*ClientData;\n#\s\s\selse\ntypedef\sint\s*ClientData;\n#\s\s\sendif\s/*\s__STDC__\s*/\n#\s\s\sdefine\s_CLIENTDATA\n#endif\n\nMore\sflexible?\s\sHow\sso?\s\ssizeof(*(ClientData))?\s\sWhat\sgood\s\nis\sthat,\snot\sthat\sit\swould\swork?\n\nI\sdo\smost\sof\smy\swork\sin\sC++\sand\snever\shad\sto\scast\sa\styped\s\npointer\sto\sa\sClientData.\s\sComing\sout\sof\sa\sClientData\sto\sa\s\ntyped\spointer,\sof\scourse\syes,\sI\shad\sto\scast.\s\sThen\sI\sdo\s\nsome\swork\sin\sC,\sand\sI\sget\sthis\sdamn\scast\sshit\sgoing\sinto\sa\s\nClientData.\s\sBut\sits\sstill\slegal\sin\sC.\s\sTyped\spointer\sto\sa\s\nvoid\spointer\swithout\sa\scast\sis\slegal\sin\sthis\scompiler\sfor\s\nC.\s\sIf\sthis\sis\sthe\scase,\sand\sis\sfine\sin\sC++\saccording\sto\s\nthe\sexisting\slogic,\sdon't\sforce\san\sint*\swhen\sit\sisn't\s\nneeded,\splease.\s\sThere\sare\susers\sof\sthe\sTcl\sAPI\sbesides\sthe\s\ncore\sitself\swhere\sold-fashioned\sseems\sto\salways\stake\s\nprecidence\sover\sadvances.\s\sJust\sbecause\sits\sthere,\sand\shas\s\nbeen\sfor\sa\swhile,\sdoesn't\smean\sits\sright\sby\sonly\sit's\s\nexistence.\s\sPlease\squestion\sthe\smeaning\sof\sthe\spreprocessor\s\nlogic.\s\sIt\sdoesn't\smake\ssense\sfor\sthis\scompiler.\n\n#if\s!defined(__STDC__)\sand\s!defined(__cplusplus)\s==\s1\ndoes\sthat\smean\sa\svoid*\sisn't\slegal?\s\sBut\sin\sthe\scase\sfor\s\ndefined(_MSC_VER),\sit\sis\strue,\sthough.\n\nIs\sthat\stest\stesting\sa\scompiler\sfeature\sor\sforcing\san\s\ninterface?\s\sIf\sit's\sforcing\san\sinterface,\swhy?\s\sIt\sgets\sin\s\nmy\sway\sas\sa\suser\sof\sthe\sAPI.\n\n
J login davygrvy
J mimetype text/plain
J status Open
J username davygrvy
K 509340ffffffffffffffffffffffffffffffffff
U davygrvy
Z cbb602a79baa4bb91d9120b51648f7fc