diff options
author | jenglish@flightlab.com <jenglish> | 2013-02-27 14:41:41 (GMT) |
---|---|---|
committer | jenglish@flightlab.com <jenglish> | 2013-02-27 14:41:41 (GMT) |
commit | 61f304d32518a0b676e01d09d4aad633dc88738f (patch) | |
tree | e4c799bd7715375437a5ca9333297d2092c73630 /generic/tkCanvas.c | |
parent | c53b6ab4048d3b4f5d9c44c0ef1ae8d82aaf5f00 (diff) | |
download | tk-61f304d32518a0b676e01d09d4aad633dc88738f.zip tk-61f304d32518a0b676e01d09d4aad633dc88738f.tar.gz tk-61f304d32518a0b676e01d09d4aad633dc88738f.tar.bz2 |
Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper
exists and is used.
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 05bc623..23d8e04 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -828,8 +828,8 @@ CanvasWidgetCmd( Tcl_WrongNumArgs(interp, 1, objv, "option ?arg ...?"); return TCL_ERROR; } - if (Tcl_GetIndexFromObjStruct(interp, objv[1], optionStrings, - sizeof(char *), "option", 0, &index) != TCL_OK) { + if (Tcl_GetIndexFromObj(interp, objv[1], optionStrings, "option", 0, + &index) != TCL_OK) { return TCL_ERROR; } Tcl_Preserve(canvasPtr); @@ -1887,8 +1887,8 @@ CanvasWidgetCmd( if (objc < 5) { Tcl_WrongNumArgs(interp, 2, objv, "mark|dragto x y ?dragGain?"); result = TCL_ERROR; - } else if (Tcl_GetIndexFromObjStruct(interp, objv[2], optionStrings, - sizeof(char *), "scan option", 0, &index) != TCL_OK) { + } else if (Tcl_GetIndexFromObj(interp, objv[2], optionStrings, + "scan option", 0, &index) != TCL_OK) { result = TCL_ERROR; } else if ((objc != 5) && (objc != 5+index)) { Tcl_WrongNumArgs(interp, 3, objv, index?"x y ?gain?":"x y"); @@ -1959,8 +1959,8 @@ CanvasWidgetCmd( goto done; } } - if (Tcl_GetIndexFromObjStruct(interp, objv[2], optionStrings, - sizeof(char *), "select option", 0, &optionindex) != TCL_OK) { + if (Tcl_GetIndexFromObj(interp, objv[2], optionStrings, + "select option", 0, &optionindex) != TCL_OK) { result = TCL_ERROR; goto done; } @@ -4301,8 +4301,8 @@ FindItems( } else { uid = NULL; } - if (Tcl_GetIndexFromObjStruct(interp, objv[first], optionStrings, - sizeof(char *), "search command", 0, &index) != TCL_OK) { + if (Tcl_GetIndexFromObj(interp, objv[first], optionStrings, + "search command", 0, &index) != TCL_OK) { return TCL_ERROR; } switch ((enum options) index) { |