diff options
| author | hobbs <hobbs> | 2006-05-30 00:30:25 (GMT) | 
|---|---|---|
| committer | hobbs <hobbs> | 2006-05-30 00:30:25 (GMT) | 
| commit | cf3d65ac9145114fd423f8a2131e2d0947a35d7c (patch) | |
| tree | ebcd8c078e5a217194f8004bccede0090106ec71 | |
| parent | 0a06466de7593360f1df53a9faacf9e08b823c2f (diff) | |
| download | tcl-cf3d65ac9145114fd423f8a2131e2d0947a35d7c.zip tcl-cf3d65ac9145114fd423f8a2131e2d0947a35d7c.tar.gz tcl-cf3d65ac9145114fd423f8a2131e2d0947a35d7c.tar.bz2  | |
	* generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allow
	placement in unbraced outer if/else conditions. (jcw)
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | generic/tcl.h | 7 | 
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2006-05-29  Jeff Hobbs  <jeffh@ActiveState.com> + +	* generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allow +	placement in unbraced outer if/else conditions. (jcw) +  2006-05-27  Daniel Steffen  <das@users.sourceforge.net>  	* macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler that diff --git a/generic/tcl.h b/generic/tcl.h index 7981a22..8938e4b 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -13,7 +13,7 @@   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES.   * - * RCS: @(#) $Id: tcl.h,v 1.212 2006/05/04 14:01:21 dgp Exp $ + * RCS: @(#) $Id: tcl.h,v 1.213 2006/05/30 00:30:25 hobbs Exp $   */  #ifndef _TCL @@ -844,8 +844,11 @@ int		Tcl_IsShared _ANSI_ARGS_((Tcl_Obj *objPtr));  #else  #   define Tcl_IncrRefCount(objPtr) \  	++(objPtr)->refCount +    /* +     * Use empty if ; else to handle use in unbraced outer if/else conditions +     */  #   define Tcl_DecrRefCount(objPtr) \ -	if (--(objPtr)->refCount <= 0) TclFreeObj(objPtr) +	if (--(objPtr)->refCount > 0) ; else TclFreeObj(objPtr)  #   define Tcl_IsShared(objPtr) \  	((objPtr)->refCount > 1)  #endif  | 
