diff options
author | tne <tne> | 2014-09-03 21:10:46 (GMT) |
---|---|---|
committer | tne <tne> | 2014-09-03 21:10:46 (GMT) |
commit | 13d2474845b4b62c7a74064518c6159e00b44883 (patch) | |
tree | 6b667a8ef5581e56965a2ec13a239be6216cc609 /unix/tclAppInit.c | |
parent | 89646f796eb2721743fc4c0d1974480794913baa (diff) | |
parent | cefb8b148004b24b824e959c03d73f5a6800001b (diff) | |
download | tcl-hypnotoad.zip tcl-hypnotoad.tar.gz tcl-hypnotoad.tar.bz2 |
Updating hypnotoad branchhypnotoad
Diffstat (limited to 'unix/tclAppInit.c')
-rw-r--r-- | unix/tclAppInit.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c index cdfff59..95dc38e 100644 --- a/unix/tclAppInit.c +++ b/unix/tclAppInit.c @@ -108,28 +108,7 @@ int Tcl_AppInit( Tcl_Interp *interp) /* Interpreter for application. */ { - CONST char *cp=Tcl_GetNameOfExecutable(); - /* We have to initialize the virtual filesystem before calling - ** Tcl_Init(). Otherwise, Tcl_Init() will not be able to find - ** its startup script files. - */ - Tcl_Zvfs_Init(interp); - if(!Tcl_Zvfs_Mount(interp, cp, "/zvfs")) { - Tcl_Obj *vfsinitscript=Tcl_NewStringObj("/zvfs/main.tcl",-1); - Tcl_Obj *vfstcllib=Tcl_NewStringObj("/zvfs/tcl8.6",-1); - - Tcl_IncrRefCount(vfsinitscript); - Tcl_IncrRefCount(vfstcllib); - - if(Tcl_FSAccess(vfsinitscript,F_OK)==0) { - Tcl_SetStartupScript(vfsinitscript,NULL); - } - if(Tcl_FSAccess(vfstcllib,F_OK)==0) { - Tcl_SetVar2(interp, "env", "TCL_LIBRARY", Tcl_GetString(vfstcllib), TCL_GLOBAL_ONLY); - } - Tcl_DecrRefCount(vfsinitscript); - Tcl_DecrRefCount(vfstcllib); - } + Tcl_Zvfs_Boot(interp); if ((Tcl_Init)(interp) == TCL_ERROR) { return TCL_ERROR; |