About the "plus"-patch for Tcl8.2.1
LICENCE TERMS
The plus-patches are distributed under the same terms
as Tcl/Tk. Read the file "licence.terms" for more information.
======================================================================
This patch contains the following enhancements:
Shared library support
If the option "--enable-shared" is given to the configure script both the
static and shared libraries are created. Also in all directories where
shared libraries are a pkgIndex.tcl file is created which contains
references to all functions in these shared libraries.
Because of the existance of pkgIndex.tcl files, the "package require"
command is enough to load the shared libraries into tclsh. For example:
>tclsh8.2
%package require Tk
This single command is enough to load libtk8.2.so dynamically. The main
window "." will appear and all tk commands are available. For some systems
(e.g. SunOS4) this will not yet work in all situations, but usually the
cause of such a failure is because of your system doesn't have a shared
X11 library. The "package require Tk" has the side effect that at the
end of the script automatically an implicit "tkwait window ." will be
added. So, the application will continue to process events as long as
the main window exists.
C++-support
The following files are changed such that they now can be compiled by
any C or C++ compiler (both K&R and ANSI).
Tcl
tclAppInit.c
tclTest.c
tclUnixTest.c
pkga.c
pkgb.c
pkgc.c
pkgd.c
pkge.c
pkgf.c
Tk
tkAppInit.c
tkTest.c
tkSquare.c
Loadable extensions
If shared libraries are enabled, the executables tcltest and tktest are no
longer created for testing purposes. In stead, loadable libraries Tcltest.so,
Objtest.so, Proctest.so, Tclptest.so, Tktest.so, Tkptest.so and Tksquare.so are
created which only contain the additional test functions. These loadable
libraries will be used to test tclsh and wish.
----------------------------------------------------------------------------
The "plus"-patch is implemented by:
Jan Nijtmans
CMG (Computer Management Group) Arnhem B.V.
email: j.nijtmans@chello.nl (private)
jan.nijtmans@cmg.nl (work)
url: http://purl.oclc.org/net/nijtmans/