diff options
author | nijtmans <nijtmans@noemail.net> | 2009-04-27 09:41:48 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2009-04-27 09:41:48 (GMT) |
commit | 1a9912d42064720ce63695346c2fb41ca58e5264 (patch) | |
tree | 6d83571d72ea4a51d0e9a6870ffdb8c2f9dc038d /generic/tclIOCmd.c | |
parent | 253374d33d901e085f7ecff1fb628a30e9628243 (diff) | |
download | tcl-1a9912d42064720ce63695346c2fb41ca58e5264.zip tcl-1a9912d42064720ce63695346c2fb41ca58e5264.tar.gz tcl-1a9912d42064720ce63695346c2fb41ca58e5264.tar.bz2 |
Reset internal INTERP_ALTERNATE_WRONG_ARGS
flag inside the Tcl_WrongNumArgs function,
so the caller no longer has to do the reset.
FossilOrigin-Name: e1dc3287730505e30fe86e18a24d47767c6674ee
Diffstat (limited to 'generic/tclIOCmd.c')
-rw-r--r-- | generic/tclIOCmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c index 3ee768f..13a6853 100644 --- a/generic/tclIOCmd.c +++ b/generic/tclIOCmd.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOCmd.c,v 1.63 2009/02/10 22:49:58 nijtmans Exp $ + * RCS: @(#) $Id: tclIOCmd.c,v 1.64 2009/04/27 09:41:49 nijtmans Exp $ */ #include "tclInt.h" @@ -402,7 +402,6 @@ Tcl_ReadObjCmd( iPtr->flags |= INTERP_ALTERNATE_WRONG_ARGS; Tcl_WrongNumArgs(interp, 1, objv, "?-nonewline? channelId"); - iPtr->flags &= ~INTERP_ALTERNATE_WRONG_ARGS; return TCL_ERROR; } @@ -1558,7 +1557,6 @@ Tcl_SocketObjCmd( iPtr->flags |= INTERP_ALTERNATE_WRONG_ARGS; Tcl_WrongNumArgs(interp, 1, objv, "-server command ?-myaddr addr? port"); - iPtr->flags &= ~INTERP_ALTERNATE_WRONG_ARGS; return TCL_ERROR; } |