Skip to content
Tcl Source Code Artifact [fc547480b4]
Login

Artifact [fc547480b4]

Artifact fc547480b409f4ccbdc2f4665d4651268d1ee113:

Ticket change [fc547480b4] - New ticket [845155ffffffffff|845155ffff] <i>Check ANSI C switches</i>. by elfring on 2003-11-19 14:32:40.
D 2003-11-19T14:32:40
J assignee mdejong
J cmimetype text/plain
J comment I\ssee\sthat\sthe\smacro\s"_ANSI_ARGS_"\sis\sused\sfor\sdefinitions\sof\sfunction\spointers.\s(File\s"generic/tcl.h")\nBut\sI\sam\smissing\sa\smacro\sto\sswitch\sbetween\sold\sstyle\sfunction\ssignature\sand\scurrent\sANSI\sconformance.\n\nFile\s"generic/tclAlloc.c":\n...\nchar\s*\nTclpAlloc(nbytes)\n\s\s\s\sunsigned\sint\snbytes;/*\sNumber\sof\sbytes\sto\sallocate.\s*/\n{\s...\n\nI\swould\sprefer\sthis\sdefinition.\n...\nvoid*\sTclpAlloc(unsigned\sint\snbytes\s\s\s/*\sNumber\sof\sbytes\sto\sallocate.\s*/)\n\s{\s...\n\n#if\sdefined(__STDC__)\s||\sdefined(__cplusplus)\n#\s\s\sundef\sNO_PROTOTYPES\n#\s\s\sdefine\sFUNCTION_PARMETER_DELIMITER\s,\n#\s\s\sdefine\sFUNCTION_HEAD(specifiers,\sname,\sparameters)\sspecifiers\sname\s(parameters)\n#else\n#\s\s\sdefine\sFUNCTION_PARMETER_DELIMITER\s;\n#\s\s\sdefine\sFUNCTION_HEAD(specifiers,\sname,\sparameters)\sspecifiers\sname\s()\sparameters\n#endif\n\n#define\sFUNCTION_PARMETER_JOIN(x,\sy)\sx##FUNCTION_PARMETER_DELIMITER\sy##FUNCTION_PARMETER_DELIMITER\n\n\n=>\sExample:\nFUNCTION_HEAD(EXTERN\svoid*,\sTclpRealloc,\sFUNCTION_PARMETER_JOIN(char\s*cp,\sunsigned\sint\snbytes))
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter elfring
J subsystem 52.\sPortability\sSupport
J title Check\sANSI\sC\sswitches
J type RFE
K 845155ffffffffffffffffffffffffffffffffff
U elfring
Z c6941f0d1ff8eca3e09936af34cdd76e