diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-08-21 21:43:16 (GMT) | 
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-08-21 21:43:16 (GMT) | 
| commit | c42f34e33320fc95bf80bdca0da2bae7bebbbe0f (patch) | |
| tree | e045a34d312e2e08725507f0d2e43c6d65bc400a /unix/tclAppInit.c | |
| parent | 64a63fa7c5594097d782968787ad37e46f9e4f5e (diff) | |
| parent | 916d72ec1ce61ebd585a78c6a9565f5c49bb8d24 (diff) | |
| download | tcl-c42f34e33320fc95bf80bdca0da2bae7bebbbe0f.zip tcl-c42f34e33320fc95bf80bdca0da2bae7bebbbe0f.tar.gz tcl-c42f34e33320fc95bf80bdca0da2bae7bebbbe0f.tar.bz2 | |
Merge 8.7
Diffstat (limited to 'unix/tclAppInit.c')
| -rw-r--r-- | unix/tclAppInit.c | 21 | 
1 files changed, 12 insertions, 9 deletions
| diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c index 552f9e4..05d25de 100644 --- a/unix/tclAppInit.c +++ b/unix/tclAppInit.c @@ -12,12 +12,15 @@   * this file, and for a DISCLAIMER OF ALL WARRANTIES.   */ -#undef BUILD_tcl -#undef STATIC_BUILD  #include "tcl.h" -#if TCL_MAJOR_VERSION < 9 && TCL_MINOR_VERSION < 7 +#if TCL_MAJOR_VERSION < 9 +#  if defined(USE_TCL_STUBS) +#	error "Don't build with USE_TCL_STUBS!" +#  endif +#  if TCL_MINOR_VERSION < 7  #   define Tcl_LibraryInitProc Tcl_PackageInitProc  #   define Tcl_StaticLibrary Tcl_StaticPackage +#  endif  #endif  #ifdef TCL_TEST @@ -88,7 +91,7 @@ main(      TclZipfs_AppHook(&argc, &argv);  #endif -    Tcl_Main(argc, argv, TCL_LOCAL_APPINIT); +    Tcl_Main((size_t)argc, argv, TCL_LOCAL_APPINIT);      return 0;			/* Needed only to prevent compiler warning. */  } @@ -115,7 +118,7 @@ int  Tcl_AppInit(      Tcl_Interp *interp)		/* Interpreter for application. */  { -    if ((Tcl_Init)(interp) == TCL_ERROR) { +    if (Tcl_Init(interp) == TCL_ERROR) {  	return TCL_ERROR;      } @@ -157,11 +160,11 @@ Tcl_AppInit(       */  #ifdef DJGPP -    (Tcl_ObjSetVar2)(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL, -	    Tcl_NewStringObj("~/tclsh.rc", -1), TCL_GLOBAL_ONLY); +    Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", TCL_INDEX_NONE), NULL, +	    Tcl_NewStringObj("~/tclsh.rc", TCL_INDEX_NONE), TCL_GLOBAL_ONLY);  #else -    (Tcl_ObjSetVar2)(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL, -	    Tcl_NewStringObj("~/.tclshrc", -1), TCL_GLOBAL_ONLY); +    Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", TCL_INDEX_NONE), NULL, +	    Tcl_NewStringObj("~/.tclshrc", TCL_INDEX_NONE), TCL_GLOBAL_ONLY);  #endif      return TCL_OK; | 
