summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-24 11:14:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-24 11:14:51 (GMT)
commitf5556535dc210e0697925ed3d1d446c4f34b7a61 (patch)
treec1a2632bd73860179d6b6f6e77d54fb740028195 /generic/tclIOUtil.c
parent570d1f597600fd4e019636e74fc5d1a74bc0b53e (diff)
downloadtcl-f5556535dc210e0697925ed3d1d446c4f34b7a61.zip
tcl-f5556535dc210e0697925ed3d1d446c4f34b7a61.tar.gz
tcl-f5556535dc210e0697925ed3d1d446c4f34b7a61.tar.bz2
Add dummy 0 parameter (unused flags) to internal Tcl_FSLoadFileProc call, for upwards compatibility with version 2 filesystems
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 69b7e44..cfa01f0 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -2774,6 +2774,9 @@ Tcl_FSChdir(pathPtr)
*----------------------------------------------------------------------
*/
+typedef int (Tcl_FSLoadFileProc2) (Tcl_Interp *interp, Tcl_Obj *pathPtr,
+ Tcl_LoadHandle *handlePtr, Tcl_FSUnloadFileProc **unloadProcPtr, int flags);
+
int
Tcl_FSLoadFile(interp, pathPtr, sym1, sym2, proc1Ptr, proc2Ptr,
handlePtr, unloadProcPtr)
@@ -2797,7 +2800,8 @@ Tcl_FSLoadFile(interp, pathPtr, sym1, sym2, proc1Ptr, proc2Ptr,
if (fsPtr != NULL) {
Tcl_FSLoadFileProc *proc = fsPtr->loadFileProc;
if (proc != NULL) {
- int retVal = (*proc)(interp, pathPtr, handlePtr, unloadProcPtr);
+ int retVal = ((Tcl_FSLoadFileProc2 *)proc)
+ (interp, pathPtr, handlePtr, unloadProcPtr, 0);
if (retVal != TCL_OK) {
return retVal;
}