Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Tcl_Init(3)		    Tcl	Library	Procedures		   Tcl_Init(3)

______________________________________________________________________________

NAME
       Tcl_Init	- find and source initialization script

SYNOPSIS
       #include	<tcl.h>

       int
       Tcl_Init(interp)

       const char *
       Tcl_SetPreInitScript(scriptPtr)

ARGUMENTS
       Tcl_Interp *interp (in)		Interpreter to initialize.

       const char *scriptPtr (in)	Address	of the initialization script.
______________________________________________________________________________

DESCRIPTION
       Tcl_Init	 is  a	helper	procedure  that	finds and sources the init.tcl
       script, which should exist somewhere on the Tcl library path.

       Tcl_Init	is typically called from Tcl_AppInit procedures.

       Tcl_SetPreInitScript registers the pre-initialization  script  and  re-
       turns the former	(now replaced) script pointer.	A value	of NULL	may be
       passed  to  not	register any script.  The pre-initialization script is
       executed	by Tcl_Init before accessing the file system. The  purpose  is
       to  typically  prepare a	custom file system (like an embedded zip-file)
       to be activated before the search.

       When used in stub-enabled embedders, the	stubs table must be first ini-
       tialized	using one of Tcl_InitSubsystems, Tcl_SetPanicProc, Tcl_FindEx-
       ecutable	or TclZipfs_AppHook before Tcl_SetPreInitScript	may be called.

SEE ALSO
       Tcl_AppInit, Tcl_Main

KEYWORDS
       application, initialization, interpreter

Tcl				      9.0			   Tcl_Init(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=Tcl_Init.tcl90&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help