diff options
| author | dgp@users.sourceforge.net <dgp> | 2006-07-21 14:56:14 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2006-07-21 14:56:14 (GMT) |
| commit | 98082390b079a029aff6185c85440358eabd4242 (patch) | |
| tree | ab3d1725761097a0ef5beadfebf4d2a008505e35 /generic/tclInt.h | |
| parent | 203a19a5c5845fb6968c0196551e0200a6e9dc93 (diff) | |
| download | tcl-98082390b079a029aff6185c85440358eabd4242.zip tcl-98082390b079a029aff6185c85440358eabd4242.tar.gz tcl-98082390b079a029aff6185c85440358eabd4242.tar.bz2 | |
undo mistaken commit
Diffstat (limited to 'generic/tclInt.h')
| -rw-r--r-- | generic/tclInt.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index cb4a70f..ecc7615 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -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: tclInt.h,v 1.273 2006/07/21 10:47:19 msofer Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.274 2006/07/21 14:56:14 dgp Exp $ */ #ifndef _TCLINT @@ -2624,20 +2624,15 @@ MODULE_SCOPE void TclInvalidateNsPath(Namespace *nsPtr); (objPtr)->length = 0; \ (objPtr)->typePtr = NULL -/* Invalidate the string rep first so we can use the bytes value \ - * for our pointer chain, and signal an obj deletion (as opposed \ - * to shimmering) with 'length == -1' */ \ - # define TclDecrRefCount(objPtr) \ if (--(objPtr)->refCount <= 0) { \ - if ((objPtr)->bytes \ - && ((objPtr)->bytes != tclEmptyStringRep)) { \ - ckfree((char *) (objPtr)->bytes); \ - } \ - (objPtr)->length = -1; \ if ((objPtr)->typePtr && (objPtr)->typePtr->freeIntRepProc) { \ TclFreeObj(objPtr); \ } else { \ + if ((objPtr)->bytes \ + && ((objPtr)->bytes != tclEmptyStringRep)) { \ + ckfree((char *) (objPtr)->bytes); \ + } \ TclFreeObjStorage(objPtr); \ TclIncrObjsFreed(); \ } \ |
