tclMacResource.r
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1. /* 
  2.  * tclMacResource.r --
  3.  *
  4.  * This file creates resources for use in a simple shell.
  5.  * This is designed to be an example of using the Tcl libraries
  6.  * statically in a Macintosh Application.  For an example of
  7.  * of using the dynamic libraries look at tclMacApplication.r.
  8.  *
  9.  * Copyright (c) 1993-94 Lockheed Missle & Space Company
  10.  * Copyright (c) 1994-97 Sun Microsystems, Inc.
  11.  *
  12.  * See the file "license.terms" for information on usage and redistribution
  13.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  14.  *
  15.  * RCS: @(#) $Id: tclMacResource.r,v 1.8 2002/09/12 17:33:20 das Exp $
  16.  */
  17. #include <Types.r>
  18. #include <SysTypes.r>
  19. /*
  20.  * The folowing include and defines help construct
  21.  * the version string for Tcl.
  22.  */
  23. #define RC_INVOKED
  24. #include "tcl.h"
  25. /* 
  26.  * The mechanisim below loads Tcl source into the resource fork of the
  27.  * application.  The example below creates a TEXT resource named
  28.  * "Init" from the file "init.tcl".  This allows applications to use
  29.  * Tcl to define the behavior of the application without having to
  30.  * require some predetermined file structure - all needed Tcl "files"
  31.  * are located within the application.  To source a file for the
  32.  * resource fork the source command has been modified to support
  33.  * sourcing from resources.  In the below case "source -rsrc {Init}"
  34.  * will load the TEXT resource named "Init".
  35.  */
  36. #ifndef TCLTK_NO_LIBRARY_TEXT_RESOURCES
  37. #include "tclMacTclCode.r"
  38. #endif