Manifest of check-in
[d616dbd68a]
- * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Generate
an error if a mode argument like -exact is passed
more than once to the switch command. The previous
implementation silently accepted invalid switch
invocations like [switch -exact -glob $str ...].
* tests/for.test: Check some error cases when
invoking continue and break inside a for loop
next script.
* tests/switch.test: Add checks for shortened
version of a mode argument like -exact. Add
test for more than one mode argument. Add test
for odd case of passing a variable as a
body script.
by
mdejong on
2005-06-20 07:48:52.
B 5f26324c95e751b4060264edd9649092b3cf530c
C \t*\sgeneric/tclCmdMZ.c\s(Tcl_SwitchObjCmd):\sGenerate\n\tan\serror\sif\sa\smode\sargument\slike\s-exact\sis\spassed\n\tmore\sthan\sonce\sto\sthe\sswitch\scommand.\sThe\sprevious\n\timplementation\ssilently\saccepted\sinvalid\sswitch\n\tinvocations\slike\s[switch\s-exact\s-glob\s$str\s...].\n\t*\stests/for.test:\sCheck\ssome\serror\scases\swhen\n\tinvoking\scontinue\sand\sbreak\sinside\sa\sfor\sloop\n\tnext\sscript.\n\t*\stests/switch.test:\sAdd\schecks\sfor\sshortened\n\tversion\sof\sa\smode\sargument\slike\s-exact.\sAdd\n\ttest\sfor\smore\sthan\sone\smode\sargument.\sAdd\stest\n\tfor\sodd\scase\sof\spassing\sa\svariable\sas\sa\n\tbody\sscript.\n
D 2005-06-20T07:48:52
F ChangeLog ff12da0e8a98835e19c94fd4bc1afb88bb5ad3b8
F generic/tclCmdMZ.c cbbf1ce38b90a61a9165cc249003d69bba9f59c5
F generic/tclInt.h bfaba536926e322d7662ab7de5fc3066f6baa54a
F tests/for.test 3b1d5f7fc371a0fe8c30bbfc95772d8e22f3cdc0
F tests/switch.test e017889a7410569ab7d73c0210d8316923e026e6
F unix/configure 48c13171e810c56c6bf0e5e15476ecf1ffc9d216 x
F unix/tcl.m4 5b5450faede28a0c3cf41949b148b9a46caa3e01
P 02ddae4aec34b1b29e9b60c968850833ee5c3df8
U mdejong
Z 93de68a50a3686098d8d5b5b47b858c1