diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-06-15 07:55:16 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-06-15 07:55:16 (GMT) |
commit | 2765a470e02048d3bd73bf18d4cc7b5191faab0b (patch) | |
tree | 4d328bf9c467e0770d976ceeb6c47acc301bed89 /generic/ttk | |
parent | 058a1bb001dcf7f74b173d6afd4861a49495f2c4 (diff) | |
download | tk-2765a470e02048d3bd73bf18d4cc7b5191faab0b.zip tk-2765a470e02048d3bd73bf18d4cc7b5191faab0b.tar.gz tk-2765a470e02048d3bd73bf18d4cc7b5191faab0b.tar.bz2 |
[Bug 3535362]: Changed name of 'unshare' internal function to avoid clash with
some libc versions.
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkTreeview.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 222b280..6b9042f 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -485,11 +485,11 @@ static void foreachHashEntry(Tcl_HashTable *ht, HashEntryIterator func) } } -/* + unshare(objPtr) -- +/* + unshareObj(objPtr) -- * Ensure that a Tcl_Obj * has refcount 1 -- either return objPtr * itself, or a duplicated copy. */ -static Tcl_Obj *unshare(Tcl_Obj *objPtr) +static Tcl_Obj *unshareObj(Tcl_Obj *objPtr) { if (Tcl_IsShared(objPtr)) { Tcl_Obj *newObj = Tcl_DuplicateObj(objPtr); @@ -2525,7 +2525,7 @@ static int TreeviewSetCommand( } else { /* set column */ int length; - item->valuesObj = unshare(item->valuesObj); + item->valuesObj = unshareObj(item->valuesObj); /* Make sure -values is fully populated: */ @@ -2826,7 +2826,7 @@ static int TreeviewSeeCommand( */ for (parent = item->parent; parent; parent = parent->parent) { if (!(parent->state & TTK_STATE_OPEN)) { - parent->openObj = unshare(parent->openObj); + parent->openObj = unshareObj(parent->openObj); Tcl_SetBooleanObj(parent->openObj, 1); parent->state |= TTK_STATE_OPEN; TtkRedisplayWidget(&tv->core); |