summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-03-07 16:37:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-03-07 16:37:19 (GMT)
commitaf99817e41ea5c9aaad4f862bfd0ba922ac51ad4 (patch)
tree15a856fa23ed0d2530e540fafc569b5baa2152f5 /generic/tclObj.c
parentac53b96315684cde4588cf9f3348c15bd23141c1 (diff)
downloadtcl-af99817e41ea5c9aaad4f862bfd0ba922ac51ad4.zip
tcl-af99817e41ea5c9aaad4f862bfd0ba922ac51ad4.tar.gz
tcl-af99817e41ea5c9aaad4f862bfd0ba922ac51ad4.tar.bz2
* generic/tclObj.c (Tcl_AppendAllObjTypes): Converted to simpler
list validity test.
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 58a964a..719dfe4 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclObj.c,v 1.116 2006/12/01 14:31:19 dgp Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.117 2007/03/07 16:37:22 dgp Exp $
*/
#include "tclInt.h"
@@ -482,14 +482,13 @@ Tcl_AppendAllObjTypes(
{
register Tcl_HashEntry *hPtr;
Tcl_HashSearch search;
- int objc;
- Tcl_Obj **objv;
+ int numElems;
/*
* Get the test for a valid list out of the way first.
*/
- if (Tcl_ListObjGetElements(interp, objPtr, &objc, &objv) != TCL_OK) {
+ if (Tcl_ListObjLength(interp, objPtr, &numElems) != TCL_OK) {
return TCL_ERROR;
}