summaryrefslogtreecommitdiffstats
path: root/generic/tkSelect.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/tkSelect.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/tkSelect.c')
-rw-r--r--generic/tkSelect.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/generic/tkSelect.c b/generic/tkSelect.c
index 8afe6ca..2414b3d 100644
--- a/generic/tkSelect.c
+++ b/generic/tkSelect.c
@@ -689,8 +689,8 @@ Tk_SelectionObjCmd(
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;
}
@@ -715,8 +715,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObjStruct(interp, objs[0], clearOptionStrings,
- sizeof(char *), "option", 0, &clearIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objs[0], clearOptionStrings,
+ "option", 0, &clearIndex) != TCL_OK) {
return TCL_ERROR;
}
switch ((enum clearOptions) clearIndex) {
@@ -775,8 +775,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObjStruct(interp, objs[0], getOptionStrings,
- sizeof(char *), "option", 0, &getIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objs[0], getOptionStrings,
+ "option", 0, &getIndex) != TCL_OK) {
return TCL_ERROR;
}
@@ -853,8 +853,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObjStruct(interp, objs[0],handleOptionStrings,
- sizeof(char *), "option", 0, &handleIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objs[0],handleOptionStrings,
+ "option", 0, &handleIndex) != TCL_OK) {
return TCL_ERROR;
}
@@ -940,8 +940,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObjStruct(interp, objs[0], ownOptionStrings,
- sizeof(char *), "option", 0, &ownIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objs[0], ownOptionStrings,
+ "option", 0, &ownIndex) != TCL_OK) {
return TCL_ERROR;
}