diff options
author | dgp <dgp@users.sourceforge.net> | 2007-03-21 18:02:49 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-03-21 18:02:49 (GMT) |
commit | 1daf7b251b3f3c433644a0298c902c1c3032aa4d (patch) | |
tree | 15313c19062f14adf25226dab2cc03675bf43831 /generic/tclUtil.c | |
parent | 02f9ee42d9908ad9e6c31c5c43aec3c3c65b3390 (diff) | |
download | tcl-1daf7b251b3f3c433644a0298c902c1c3032aa4d.zip tcl-1daf7b251b3f3c433644a0298c902c1c3032aa4d.tar.gz tcl-1daf7b251b3f3c433644a0298c902c1c3032aa4d.tar.bz2 |
* generic/tclExecute.c: More ckalloc -> ckrealloc conversions.
* generic/tclLiteral.c:
* generic/tclNamesp.c:
* generic/tclParse.c:
* generic/tclPreserve.c:
* generic/tclStringObj.c:
* generic/tclUtil.c:
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index d63be29..adced82 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUtil.c,v 1.80 2007/01/18 23:17:07 dkf Exp $ + * RCS: @(#) $Id: tclUtil.c,v 1.81 2007/03/21 18:02:51 dgp Exp $ */ #include "tclInt.h" @@ -1598,9 +1598,7 @@ Tcl_DStringAppend( if (newSize >= dsPtr->spaceAvl) { dsPtr->spaceAvl = newSize * 2; if (dsPtr->string == dsPtr->staticSpace) { - char *newString; - - newString = (char *) ckalloc((unsigned) dsPtr->spaceAvl); + char *newString = ckalloc((unsigned) dsPtr->spaceAvl); memcpy((void *) newString, (void *) dsPtr->string, (size_t) dsPtr->length); dsPtr->string = newString; @@ -1665,9 +1663,7 @@ Tcl_DStringAppendElement( if (newSize >= dsPtr->spaceAvl) { dsPtr->spaceAvl = newSize * 2; if (dsPtr->string == dsPtr->staticSpace) { - char *newString; - - newString = (char *) ckalloc((unsigned) dsPtr->spaceAvl); + char *newString = ckalloc((unsigned) dsPtr->spaceAvl); memcpy((void *) newString, (void *) dsPtr->string, (size_t) dsPtr->length); dsPtr->string = newString; @@ -1749,9 +1745,7 @@ Tcl_DStringSetLength( dsPtr->spaceAvl = length + 1; } if (dsPtr->string == dsPtr->staticSpace) { - char *newString; - - newString = (char *) ckalloc((unsigned) dsPtr->spaceAvl); + char *newString = ckalloc((unsigned) dsPtr->spaceAvl); memcpy((void *) newString, (void *) dsPtr->string, (size_t) dsPtr->length); dsPtr->string = newString; |