diff options
author | dgp <dgp@users.sourceforge.net> | 2007-03-07 16:37:19 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-03-07 16:37:19 (GMT) |
commit | af99817e41ea5c9aaad4f862bfd0ba922ac51ad4 (patch) | |
tree | 15a856fa23ed0d2530e540fafc569b5baa2152f5 | |
parent | ac53b96315684cde4588cf9f3348c15bd23141c1 (diff) | |
download | tcl-af99817e41ea5c9aaad4f862bfd0ba922ac51ad4.zip tcl-af99817e41ea5c9aaad4f862bfd0ba922ac51ad4.tar.gz tcl-af99817e41ea5c9aaad4f862bfd0ba922ac51ad4.tar.bz2 |
* generic/tclObj.c (Tcl_AppendAllObjTypes): Converted to simpler
list validity test.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclObj.c | 7 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2007-03-07 Don Porter <dgp@users.sourceforge.net> + + * generic/tclObj.c (Tcl_AppendAllObjTypes): Converted to simpler + list validity test. + 2007-03-07 Donal K. Fellows <donal.k.fellows@man.ac.uk> * generic/tclRegexp.c (TclRegAbout): Generate information about a 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; } |