summaryrefslogtreecommitdiffstats
path: root/generic/tkClipboard.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2013-02-27 14:41:41 (GMT)
committerjenglish <jenglish@flightlab.com>2013-02-27 14:41:41 (GMT)
commit2b76c49e30421aa22968c63e57c49bfaa6238e2f (patch)
treee4c799bd7715375437a5ca9333297d2092c73630 /generic/tkClipboard.c
parentb83ed80002d8d8eb676c9f7c81a794e8216e3498 (diff)
downloadtk-2b76c49e30421aa22968c63e57c49bfaa6238e2f.zip
tk-2b76c49e30421aa22968c63e57c49bfaa6238e2f.tar.gz
tk-2b76c49e30421aa22968c63e57c49bfaa6238e2f.tar.bz2
Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper
exists and is used.
Diffstat (limited to 'generic/tkClipboard.c')
-rw-r--r--generic/tkClipboard.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c
index a6fa234..b902625 100644
--- a/generic/tkClipboard.c
+++ b/generic/tkClipboard.c
@@ -434,8 +434,8 @@ Tk_ClipboardObjCmd(
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;
}
@@ -464,8 +464,8 @@ Tk_ClipboardObjCmd(
i++;
break;
}
- if (Tcl_GetIndexFromObjStruct(interp, objv[i], appendOptionStrings,
- sizeof(char *), "option", 0, &subIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objv[i], appendOptionStrings,
+ "option", 0, &subIndex) != TCL_OK) {
return TCL_ERROR;
}
@@ -527,8 +527,8 @@ Tk_ClipboardObjCmd(
}
if (objc == 4) {
- if (Tcl_GetIndexFromObjStruct(interp, objv[2], clearOptionStrings,
- sizeof(char *), "option", 0, &subIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objv[2], clearOptionStrings,
+ "option", 0, &subIndex) != TCL_OK) {
return TCL_ERROR;
}
if ((enum clearOptions) subIndex == CLEAR_DISPLAYOF) {
@@ -560,8 +560,8 @@ Tk_ClipboardObjCmd(
if (string[0] != '-') {
break;
}
- if (Tcl_GetIndexFromObjStruct(interp, objv[i], getOptionStrings,
- sizeof(char *), "option", 0, &subIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objv[i], getOptionStrings,
+ "option", 0, &subIndex) != TCL_OK) {
return TCL_ERROR;
}
i++;