sl@0: /* sl@0: * tclMacResource.r -- sl@0: * sl@0: * This file creates resources for use in a simple shell. sl@0: * This is designed to be an example of using the Tcl libraries sl@0: * statically in a Macintosh Application. For an example of sl@0: * of using the dynamic libraries look at tclMacApplication.r. sl@0: * sl@0: * Copyright (c) 1993-94 Lockheed Missle & Space Company sl@0: * Copyright (c) 1994-97 Sun Microsystems, Inc. sl@0: * sl@0: * See the file "license.terms" for information on usage and redistribution sl@0: * of this file, and for a DISCLAIMER OF ALL WARRANTIES. sl@0: * sl@0: * RCS: @(#) $Id: tclMacResource.r,v 1.8 2002/09/12 17:33:20 das Exp $ sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: /* sl@0: * The folowing include and defines help construct sl@0: * the version string for Tcl. sl@0: */ sl@0: sl@0: #define RC_INVOKED sl@0: #include "tcl.h" sl@0: sl@0: /* sl@0: * The mechanisim below loads Tcl source into the resource fork of the sl@0: * application. The example below creates a TEXT resource named sl@0: * "Init" from the file "init.tcl". This allows applications to use sl@0: * Tcl to define the behavior of the application without having to sl@0: * require some predetermined file structure - all needed Tcl "files" sl@0: * are located within the application. To source a file for the sl@0: * resource fork the source command has been modified to support sl@0: * sourcing from resources. In the below case "source -rsrc {Init}" sl@0: * will load the TEXT resource named "Init". sl@0: */ sl@0: sl@0: #ifndef TCLTK_NO_LIBRARY_TEXT_RESOURCES sl@0: #include "tclMacTclCode.r" sl@0: #endif sl@0: