Skip to content
Tcl Source Code Artifact [f9d61e179a]
Login

Artifact [f9d61e179a]

Artifact f9d61e179ae02420f6bac69b4a2c8bd33b67bea9:

Ticket change [f9d61e179a] - New ticket [1194015fffffffff|1194015fff] <i>macro-ize TclFormatInt</i>. by dgp on 2005-05-02 19:47:35.
D 2005-05-02T19:47:35
J assignee msofer
J cmimetype text/plain
J comment \nGiven\n\n\s\schar\s*buf;\n\s\slong\sl;\n\nit\sappears\sthat\n\nTclFormatInt(buf,\sl);\n\nis\sthe\sequivalent\sof\n\nsprintf(buf,\s"%ld",\sl);\n\nTherefore,\sI\srequest\sto\smake\nTclFormatInt\sa\smacro,\s#define'd\nin\stclInt.h\s:\n\n\s\s#define\sTclFormatInt(buf,\sl)\s\ssprintf((buf),\s"%ld",\s(l))\n\nSome\scompatibility\sprovisions\scan\sbe\nmade\sfor\sthe\sinternal\sstubs\stable\sslot\ncurrently\soccupied\sby\sthe\sTclFormatInt\nroutine.\n\nThe\scomments\sof\sTclFormatInt\sallege:\n\n\s*\s\s\s\s\s\s...This\n\s*\s\s\s\s\s\sprocedure\shas\sthe\seffect\sof\ssprintf(buffer,\n"%d",\sn)\sbut\sis\sfaster.\n\nFrankly,\sI\sdon't\sbelieve\sthat.\s\s(Even\signoring\sthe\n"d"\sfor\s"ld"\serror.)\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 10.\sObjects
J title macro-ize\sTclFormatInt
J type RFE
K 1194015fffffffffffffffffffffffffffffffff
U dgp
Z e6851bccfd4425094f3134ebe9ad3cd5