os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/mac/tclMacTclCode.r
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/mac/tclMacTclCode.r Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,37 @@
1.4 +/*
1.5 + * tclMacTclCode.r --
1.6 + *
1.7 + * This file creates resources from the Tcl code that is
1.8 + * usually stored in the TCL_LiBRARY
1.9 + *
1.10 + * Copyright (c) 1996-1997 Sun Microsystems, Inc.
1.11 + *
1.12 + * See the file "license.terms" for information on usage and redistribution
1.13 + * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1.14 + *
1.15 + * SCCS: @(#) tclMacTclCode.r 1.1 98/01/21 22:22:38
1.16 + */
1.17 +
1.18 +#include <Types.r>
1.19 +#include <SysTypes.r>
1.20 +
1.21 +#define TCL_LIBRARY_RESOURCES 2000
1.22 +
1.23 +/*
1.24 + * The mechanisim below loads Tcl source into the resource fork of the
1.25 + * application. The example below creates a TEXT resource named
1.26 + * "Init" from the file "init.tcl". This allows applications to use
1.27 + * Tcl to define the behavior of the application without having to
1.28 + * require some predetermined file structure - all needed Tcl "files"
1.29 + * are located within the application. To source a file for the
1.30 + * resource fork the source command has been modified to support
1.31 + * sourcing from resources. In the below case "source -rsrc {Init}"
1.32 + * will load the TEXT resource named "Init".
1.33 + */
1.34 +
1.35 +read 'TEXT' (TCL_LIBRARY_RESOURCES, "init", purgeable) "::library:init.tcl";
1.36 +read 'TEXT' (TCL_LIBRARY_RESOURCES + 1, "auto", purgeable) "::library:auto.tcl";
1.37 +read 'TEXT' (TCL_LIBRARY_RESOURCES + 2, "package", purgeable,preload) "::library:package.tcl";
1.38 +read 'TEXT' (TCL_LIBRARY_RESOURCES + 3, "history", purgeable) "::library:history.tcl";
1.39 +read 'TEXT' (TCL_LIBRARY_RESOURCES + 4, "word", purgeable,preload) "::library:word.tcl";
1.40 +read 'TEXT' (TCL_LIBRARY_RESOURCES + 5, "parray", purgeable,preload) "::library:parray.tcl";