summaryrefslogtreecommitdiffstats
path: root/generic/tclPathObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-04 10:51:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-04 10:51:00 (GMT)
commit586e53a4ac38b4a017a8be29a3832632ef62705a (patch)
tree0fec8c7f2acfd218238c4f65771d849440f1b44e /generic/tclPathObj.c
parentd92d307894b14bbb065fdb65c5158f391da00cf1 (diff)
downloadtcl-586e53a4ac38b4a017a8be29a3832632ef62705a.zip
tcl-586e53a4ac38b4a017a8be29a3832632ef62705a.tar.gz
tcl-586e53a4ac38b4a017a8be29a3832632ef62705a.tar.bz2
Eliminate all Tcl_ConvertToType calls and all direct calls to typePtr->setFromAnyProc (except the call from inside the Tcl_ConvertToType function) from the Tcl core.
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r--generic/tclPathObj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c
index b3ead45..b7f3dcf 100644
--- a/generic/tclPathObj.c
+++ b/generic/tclPathObj.c
@@ -1156,7 +1156,7 @@ Tcl_FSConvertToPathType(
FreeFsPathInternalRep(pathPtr);
}
- return Tcl_ConvertToType(interp, pathPtr, &tclFsPathType);
+ return SetFsPathFromAny(interp, pathPtr);
/*
* We used to have more complex code here:
@@ -1873,7 +1873,7 @@ Tcl_FSGetNormalizedPath(
UpdateStringOfFsPath(pathPtr);
}
FreeFsPathInternalRep(pathPtr);
- if (Tcl_ConvertToType(interp, pathPtr, &tclFsPathType) != TCL_OK) {
+ if (SetFsPathFromAny(interp, pathPtr) != TCL_OK) {
return NULL;
}
fsPathPtr = PATHOBJ(pathPtr);