Skip to content
Tcl Source Code Artifact [5ca5745fb4]
Login

Artifact [5ca5745fb4]

Artifact 5ca5745fb425e42463bebe70247d000e7b06d7d8:

Ticket change [5ca5745fb4] - New ticket [2124814fffffffff|2124814fff] <i>Compilation of tclOOMethod.c fails for MSVC 6.0 compiler</i>. by flatworm on 2008-09-23 16:00:45.
D 2008-09-23T16:00:45
J assignee dkf
J cmimetype text/plain
J comment Compilation\sof\stclOOMethod.c\sfails\sfor\sMSVC\s6.0\scompiler\swith\sthis\serror:\n\ntclOOMethod.c\s..\\generic\\tclOOMethod.c(24)\s:\serror\sC2010:\s'.'\s:\sunexpected\sin\smacro\sformal\sparameter\slist\n..\\generic\\tclOOMethod.c(24)\s:\serror\sC2010:\s'.'\s:\sunexpected\sin\smacro\sformal\sparameter\slist\n..\\generic\\tclOOMethod.c(24)\s:\serror\sC2010:\s'.'\s:\sunexpected\sin\smacro\sformal\sparameter\slist\n..\\generic\\tclOOMethod.c(24)\s:\serror\sC2010:\s')'\s:\sunexpected\sin\smacro\sformal\sparameter\slist\n\nThe\sculprit\sis\sthe\sdebugging\scode:\n\n#if\s0\n#define\sDBPRINT(format,\s...)\s(fprintf(stderr,\s"DEBUG:"\sformat\s"\\n",\s__VA_ARGS__))\n#else\n#define\sDBPRINT(format,\s...)\s((void)\s0)\n#endif\n\nThis\sparticular\scompiler\sseem\sto\sdoesn't\sunderstand\s"..."\sin\smacro\sdefinitions,\sand\sI'm\ssure\sif\sit's\snot\sgcc'ism,\sit\scan\sbe\sat\sleast\sC99'ism\sor\sso.\n\nChanging\s\n#define\sDBPRINT(format,\s...)\s((void)\s0)\nto\n#define\sDBPRINT(format,\sX)\s((void)\s0)\nsolved\sthe\sproblem.\n\nI\swould\spropose\susing\sthe\s"standard"\stechnique:\nif\s0\n#define\sDBPRINT(X)\sprintf##X\n#else\n#define\sDBPRINT(X)\sdo\s{}\swhile(0)\n#endif\n...\nDBPRINTF(("foo\sis\s%d\\n",\sFoo));\n
J foundin obsolete:\s8.6a3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter flatworm
J subsystem 35.\sTclOO\sPackage
J title Compilation\sof\stclOOMethod.c\sfails\sfor\sMSVC\s6.0\scompiler
J type Bug
K 2124814fffffffffffffffffffffffffffffffff
U flatworm
Z 67193ec4f79c8923938906aeabe31809