summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-06-15 07:57:47 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-06-15 07:57:47 (GMT)
commit24a9db7c5a472666210f1878ed047fa54679d744 (patch)
tree9dec171dfcdb48a02b61d3a1abcf91bb5adc6e55 /generic
parent14f04b0ffccc38d3efc5f3c4c2549d5f5283393b (diff)
parent83daa8bd44342d161d880468d63e046f9298dc31 (diff)
downloadtk-24a9db7c5a472666210f1878ed047fa54679d744.zip
tk-24a9db7c5a472666210f1878ed047fa54679d744.tar.gz
tk-24a9db7c5a472666210f1878ed047fa54679d744.tar.bz2
[Bug 3535362]: Changed name of 'unshare' internal function to avoid clash with
some libc versions.
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkTreeview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index b17ae45..32dd183 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);
@@ -2524,7 +2524,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:
*/
@@ -2825,7 +2825,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);