diff options
author | dgp <dgp@users.sourceforge.net> | 2004-10-07 22:01:12 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-10-07 22:01:12 (GMT) |
commit | 423ed791650922250c95accd60a904bd4fac1a92 (patch) | |
tree | 4878f1e113bbbb9e7e5845e7094678da17588670 | |
parent | d8889b9e46595ff7b91a65ee6f7d085c14007cbf (diff) | |
download | tcl-423ed791650922250c95accd60a904bd4fac1a92.zip tcl-423ed791650922250c95accd60a904bd4fac1a92.tar.gz tcl-423ed791650922250c95accd60a904bd4fac1a92.tar.bz2 |
* generic/tclTest.c (TestsetobjerrorcodeCmd): Simplified.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tclTest.c | 13 |
2 files changed, 6 insertions, 11 deletions
@@ -1,3 +1,7 @@ +2004-10-07 Don Porter <dgp@users.sourceforge.net> + + * generic/tclTest.c (TestsetobjerrorcodeCmd): Simplified. + 2004-10-07 Vince Darley <vincentdarley@users.sourceforge.net> * generic/tclFileName.c: diff --git a/generic/tclTest.c b/generic/tclTest.c index e05d5cd..c8006d4 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTest.c,v 1.84 2004/10/01 03:10:36 dgp Exp $ + * RCS: @(#) $Id: tclTest.c,v 1.85 2004/10/07 22:01:18 dgp Exp $ */ #define TCL_TEST @@ -3924,16 +3924,7 @@ TestsetobjerrorcodeCmd(dummy, interp, objc, objv) int objc; /* Number of arguments. */ Tcl_Obj *CONST objv[]; /* The argument objects. */ { - Tcl_Obj *listObjPtr; - - if (objc > 1) { - listObjPtr = Tcl_ConcatObj(objc - 1, objv + 1); - } else { - listObjPtr = Tcl_NewObj(); - } - Tcl_IncrRefCount(listObjPtr); - Tcl_SetObjErrorCode(interp, listObjPtr); - Tcl_DecrRefCount(listObjPtr); + Tcl_SetObjErrorCode(interp, Tcl_ConcatObj(objc - 1, objv + 1)); return TCL_ERROR; } |