Attachment "2492179.patch" to
ticket [2492179f]
added by
dgp
2009-12-10 02:05:54.
Index: generic/tkConfig.c
===================================================================
RCS file: /cvsroot/tktoolkit/tk/generic/tkConfig.c,v
retrieving revision 1.31
diff -u -r1.31 tkConfig.c
--- generic/tkConfig.c 30 Jun 2009 00:56:29 -0000 1.31
+++ generic/tkConfig.c 9 Dec 2009 19:03:08 -0000
@@ -127,6 +127,7 @@
static Option * GetOptionFromObj(Tcl_Interp *interp,
Tcl_Obj *objPtr, OptionTable *tablePtr);
static int ObjectIsEmpty(Tcl_Obj *objPtr);
+#if 0
static int SetOptionFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr);
/*
@@ -143,6 +144,7 @@
NULL, /* updateStringProc */
SetOptionFromAny /* setFromAnyProc */
};
+#endif
/*
*--------------------------------------------------------------
@@ -1130,11 +1132,13 @@
* First, check to see if the object already has the answer cached.
*/
+#if 0
if (objPtr->typePtr == &tkOptionObjType) {
if (objPtr->internalRep.twoPtrValue.ptr1 == (void *) tablePtr) {
return (Option *) objPtr->internalRep.twoPtrValue.ptr2;
}
}
+#endif
/*
* The answer isn't cached.
@@ -1146,6 +1150,7 @@
goto error;
}
+#if 0
if ((objPtr->typePtr != NULL)
&& (objPtr->typePtr->freeIntRepProc != NULL)) {
objPtr->typePtr->freeIntRepProc(objPtr);
@@ -1153,6 +1158,7 @@
objPtr->internalRep.twoPtrValue.ptr1 = (void *) tablePtr;
objPtr->internalRep.twoPtrValue.ptr2 = (void *) bestPtr;
objPtr->typePtr = &tkOptionObjType;
+#endif
return bestPtr;
error:
@@ -1218,7 +1224,7 @@
*
*----------------------------------------------------------------------
*/
-
+#if 0
static int
SetOptionFromAny(
Tcl_Interp *interp, /* Used for error reporting if not NULL. */
@@ -1229,6 +1235,7 @@
NULL);
return TCL_ERROR;
}
+#endif
/*
*--------------------------------------------------------------
Index: generic/tkInt.h
===================================================================
RCS file: /cvsroot/tktoolkit/tk/generic/tkInt.h,v
retrieving revision 1.114
diff -u -r1.114 tkInt.h
--- generic/tkInt.h 9 Dec 2009 10:45:30 -0000 1.114
+++ generic/tkInt.h 9 Dec 2009 19:03:08 -0000
@@ -926,7 +926,9 @@
MODULE_SCOPE const Tcl_ObjType tkColorObjType;
MODULE_SCOPE const Tcl_ObjType tkCursorObjType;
MODULE_SCOPE const Tcl_ObjType tkFontObjType;
+#if 0
MODULE_SCOPE const Tcl_ObjType tkOptionObjType;
+#endif
MODULE_SCOPE const Tcl_ObjType tkStateKeyObjType;
MODULE_SCOPE const Tcl_ObjType tkTextIndexType;
Index: generic/tkObj.c
===================================================================
RCS file: /cvsroot/tktoolkit/tk/generic/tkObj.c,v
retrieving revision 1.26
diff -u -r1.26 tkObj.c
--- generic/tkObj.c 3 Feb 2009 23:55:47 -0000 1.26
+++ generic/tkObj.c 9 Dec 2009 19:03:08 -0000
@@ -1075,7 +1075,9 @@
Tcl_RegisterObjType(&tkCursorObjType);
Tcl_RegisterObjType(&tkFontObjType);
Tcl_RegisterObjType(&mmObjType);
+#if 0
Tcl_RegisterObjType(&tkOptionObjType);
+#endif
Tcl_RegisterObjType(&pixelObjType);
Tcl_RegisterObjType(&tkStateKeyObjType);
Tcl_RegisterObjType(&windowObjType);