Manifest of check-in
[42f4ee15e8]
- Change the return type of Tcl_WrongNumArgs from void to int
and have Tcl_WrongNumArgs always return TCL_ERROR.
This is a convenience to the programmer.
Most of the time in existing code, a call to Tcl_WrongNumArgs
is immediately followed by return TCL_ERROR.
Old: Tcl_WrongNumArgs(...); return TCL_ERROR;
New: return Tcl_WrongNumArgs(...);
by
stu on
2017-05-31 06:59:27.
B 358066f84b5dd8c7607723ba282a75cb7aa556f4
C Change\sthe\sreturn\stype\sof\sTcl_WrongNumArgs\sfrom\svoid\sto\sint\nand\shave\sTcl_WrongNumArgs\salways\sreturn\sTCL_ERROR.\nThis\sis\sa\sconvenience\sto\sthe\sprogrammer.\nMost\sof\sthe\stime\sin\sexisting\scode,\sa\scall\sto\sTcl_WrongNumArgs\nis\simmediately\sfollowed\sby\sreturn\sTCL_ERROR.\n\nOld:\sTcl_WrongNumArgs(...);\sreturn\sTCL_ERROR;\n\nNew:\sreturn\sTcl_WrongNumArgs(...);\n
D 2017-05-31T06:59:27.942
F doc/WrongNumArgs.3 fcc41e71682731125e2bb1a50213766a79b42a2d
F generic/tcl.decls 9c9b16966ae2439026126f0bcf807d7cc9f579a5
F generic/tclDecls.h 687012d1e4a0113efab51a5587f4f671057e0cca
F generic/tclIndexObj.c d83b88382249bf880b1a6cd5b4c5edaaeb0906ef
F unix/configure 0b89a156d43526884524886630bf3b56cbd9c158 x
F unix/tcl.m4 9a187d54b45ecd4f1f5b7df67a4ee20d0c31428c
P 7d9ba18fe4d22233e44b52de67d7ab222aae5387
R 9176e2064889fa3d52aaccd75cee95b0
U stu
Z e4c7eeaaf8e5f26ff207dd6d746e48fd