auto_execok cmd auto_load cmd auto_mkindex dir pattern pattern ... auto_reset parray arrayNametcl_endOfWord str start tcl_startOfNextWord str start tcl_startOfPreviousWord str start tcl_wordBreakAfter str start tcl_wordBreakBefore str start
To access the procedures in the Tcl library, an application should source the file init.tcl in the library, for example with the Tcl command
If the library procedure Tcl_Init is invoked from an application's Tcl_AppInit procedure, this happens automatically. The code in init.tcl will define the unknown procedure and arrange for the other procedures to be loaded on-demand using the auto-load mechanism defined below.source [file join [info library] init.tcl]
auto_mkindex foo *.tcl
will read all the .tcl files in subdirectory foo and generate a new index file foo/tclIndex.
Auto_mkindex parses the Tcl scripts in a relatively unsophisticated way: if any line contains the word proc as its first characters then it is assumed to be a procedure definition and the next word of the line is taken as the procedure's name. Procedure definitions that don't appear in this way (e.g. they have spaces before the proc) will not be indexed.
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1997 Sun Microsystems, Inc.