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)
commitb83ed80002d8d8eb676c9f7c81a794e8216e3498 (patch)
treec60953cf292d7784e416ed6fd0555d89d2e6f2c3 /generic/tkSelect.c
parentfb81bb7d6255f5040661d59559edf32bc997bd6d (diff)
downloadtk-b83ed80002d8d8eb676c9f7c81a794e8216e3498.zip
tk-b83ed80002d8d8eb676c9f7c81a794e8216e3498.tar.gz
tk-b83ed80002d8d8eb676c9f7c81a794e8216e3498.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;
}