diff options
author | jenglish <jenglish@flightlab.com> | 2013-02-27 14:41:41 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2013-02-27 14:41:41 (GMT) |
commit | 2b76c49e30421aa22968c63e57c49bfaa6238e2f (patch) | |
tree | e4c799bd7715375437a5ca9333297d2092c73630 /generic/tkSelect.c | |
parent | b83ed80002d8d8eb676c9f7c81a794e8216e3498 (diff) | |
download | tk-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.c | 20 |
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; } |