summaryrefslogtreecommitdiffstats
path: root/generic/tkSelect.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-27 12:36:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-27 12:36:56 (GMT)
commit3ce2b87dd5e2937555b28b21c6d40e812e77a3de (patch)
treec60953cf292d7784e416ed6fd0555d89d2e6f2c3 /generic/tkSelect.c
parent80385b31add9a7e4f9d43b78ff46591fb0def3d6 (diff)
downloadtk-3ce2b87dd5e2937555b28b21c6d40e812e77a3de.zip
tk-3ce2b87dd5e2937555b28b21c6d40e812e77a3de.tar.gz
tk-3ce2b87dd5e2937555b28b21c6d40e812e77a3de.tar.bz2
Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around Tcl_GetIndexFromObjStruct.
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 2414b3d..8afe6ca 100644
--- a/generic/tkSelect.c
+++ b/generic/tkSelect.c
@@ -689,8 +689,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObj(interp, objv[1], optionStrings, "option", 0,
- &index) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objv[1], optionStrings,
+ sizeof(char *), "option", 0, &index) != TCL_OK) {
return TCL_ERROR;
}
@@ -715,8 +715,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObj(interp, objs[0], clearOptionStrings,
- "option", 0, &clearIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objs[0], clearOptionStrings,
+ sizeof(char *), "option", 0, &clearIndex) != TCL_OK) {
return TCL_ERROR;
}
switch ((enum clearOptions) clearIndex) {
@@ -775,8 +775,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObj(interp, objs[0], getOptionStrings,
- "option", 0, &getIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objs[0], getOptionStrings,
+ sizeof(char *), "option", 0, &getIndex) != TCL_OK) {
return TCL_ERROR;
}
@@ -853,8 +853,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObj(interp, objs[0],handleOptionStrings,
- "option", 0, &handleIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objs[0],handleOptionStrings,
+ sizeof(char *), "option", 0, &handleIndex) != TCL_OK) {
return TCL_ERROR;
}
@@ -940,8 +940,8 @@ Tk_SelectionObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObj(interp, objs[0], ownOptionStrings,
- "option", 0, &ownIndex) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objs[0], ownOptionStrings,
+ sizeof(char *), "option", 0, &ownIndex) != TCL_OK) {
return TCL_ERROR;
}