summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-24 10:37:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-24 10:37:30 (GMT)
commitd8b1866404f460a3010b2cb7db4d7f7c311e2b94 (patch)
tree6cd1984366d92404681d2d61d43d3558ae6c0d17 /generic/tclFileName.c
parent45c9d1dc2c540809f79ea36c6635ca77787c0df3 (diff)
parent587cef525996192e9c843e36b245ee3e4fcdff18 (diff)
downloadtcl-d8b1866404f460a3010b2cb7db4d7f7c311e2b94.zip
tcl-d8b1866404f460a3010b2cb7db4d7f7c311e2b94.tar.gz
tcl-d8b1866404f460a3010b2cb7db4d7f7c311e2b94.tar.bz2
Convert Tcl_GetIndexFromObj implementation to macro
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index a519f0e..847a97a 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -1256,8 +1256,8 @@ Tcl_GlobObjCmd(
dir = PATH_NONE;
typePtr = NULL;
for (i = 1; i < objc; i++) {
- if (Tcl_GetIndexFromObj(interp, objv[i], options, "option", 0,
- &index) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objv[i], options,
+ sizeof(char *), "option", 0, &index) != TCL_OK) {
string = Tcl_GetStringFromObj(objv[i], &length);
if (string[0] == '-') {
/*