OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [mac/] [itclMacResource.r] - Diff between revs 578 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 578 Rev 1765
/*
/*
 * tclMacResource.r --
 * tclMacResource.r --
 *
 *
 *      This file creates resources for use in a simple shell.
 *      This file creates resources for use in a simple shell.
 *      This is designed to be an example of using the Tcl libraries
 *      This is designed to be an example of using the Tcl libraries
 *      statically in a Macintosh Application.  For an example of
 *      statically in a Macintosh Application.  For an example of
 *      of using the dynamic libraries look at tclMacApplication.r.
 *      of using the dynamic libraries look at tclMacApplication.r.
 *
 *
 * Copyright (c) 1993-94 Lockheed Missle & Space Company
 * Copyright (c) 1993-94 Lockheed Missle & Space Company
 * Copyright (c) 1994-96 Sun Microsystems, Inc.
 * Copyright (c) 1994-96 Sun Microsystems, Inc.
 *
 *
 * See the file "license.terms" for information on usage and redistribution
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 *
 * SCCS: @(#) tclMacResource.r 1.14 96/09/11 21:14:36
 * SCCS: @(#) tclMacResource.r 1.14 96/09/11 21:14:36
 */
 */
#include 
#include 
#include 
#include 
/*
/*
 * The folowing include and defines help construct
 * The folowing include and defines help construct
 * the version string for Tcl.
 * the version string for Tcl.
 */
 */
#define RESOURCE_INCLUDED
#define RESOURCE_INCLUDED
#include "tcl.h"
#include "tcl.h"
#include "itcl.h"
#include "itcl.h"
#include "itclPatch.h"
#include "itclPatch.h"
#if (TCL_RELEASE_LEVEL == 0)
#if (TCL_RELEASE_LEVEL == 0)
#   define RELEASE_LEVEL alpha
#   define RELEASE_LEVEL alpha
#elif (TCL_RELEASE_LEVEL == 1)
#elif (TCL_RELEASE_LEVEL == 1)
#   define RELEASE_LEVEL beta
#   define RELEASE_LEVEL beta
#elif (TCL_RELEASE_LEVEL == 2)
#elif (TCL_RELEASE_LEVEL == 2)
#   define RELEASE_LEVEL final
#   define RELEASE_LEVEL final
#endif
#endif
#if (TCL_RELEASE_LEVEL == 2)
#if (TCL_RELEASE_LEVEL == 2)
#   define MINOR_VERSION (ITCL_MINOR_VERSION * 16) + TCL_RELEASE_SERIAL
#   define MINOR_VERSION (ITCL_MINOR_VERSION * 16) + TCL_RELEASE_SERIAL
#else
#else
#   define MINOR_VERSION ITCL_MINOR_VERSION * 16
#   define MINOR_VERSION ITCL_MINOR_VERSION * 16
#endif
#endif
resource 'vers' (1) {
resource 'vers' (1) {
        ITCL_MAJOR_VERSION, MINOR_VERSION,
        ITCL_MAJOR_VERSION, MINOR_VERSION,
        RELEASE_LEVEL, 0x00, verUS,
        RELEASE_LEVEL, 0x00, verUS,
        ITCL_PATCH_LEVEL,
        ITCL_PATCH_LEVEL,
        ITCL_PATCH_LEVEL ", by Michael McLennan © Lucent Technologies, Inc."
        ITCL_PATCH_LEVEL ", by Michael McLennan © Lucent Technologies, Inc."
};
};
resource 'vers' (2) {
resource 'vers' (2) {
        ITCL_MAJOR_VERSION, MINOR_VERSION,
        ITCL_MAJOR_VERSION, MINOR_VERSION,
        RELEASE_LEVEL, 0x00, verUS,
        RELEASE_LEVEL, 0x00, verUS,
        ITCL_PATCH_LEVEL,
        ITCL_PATCH_LEVEL,
        "Simple Itcl Shell " ITCL_PATCH_LEVEL " © 1993-1998"
        "Simple Itcl Shell " ITCL_PATCH_LEVEL " © 1993-1998"
};
};
#define TCL_LIBRARY_RESOURCES 1000
#define TCL_LIBRARY_RESOURCES 1000
#define ITCL_LIBRARY_RESOURCES 2000
#define ITCL_LIBRARY_RESOURCES 2000
/*
/*
 * The mechanisim below loads Tcl source into the resource fork of the
 * The mechanisim below loads Tcl source into the resource fork of the
 * application.  The example below creates a TEXT resource named
 * application.  The example below creates a TEXT resource named
 * "Init" from the file "init.tcl".  This allows applications to use
 * "Init" from the file "init.tcl".  This allows applications to use
 * Tcl to define the behavior of the application without having to
 * Tcl to define the behavior of the application without having to
 * require some predetermined file structure - all needed Tcl "files"
 * require some predetermined file structure - all needed Tcl "files"
 * are located within the application.  To source a file for the
 * are located within the application.  To source a file for the
 * resource fork the source command has been modified to support
 * resource fork the source command has been modified to support
 * sourcing from resources.  In the below case "source -rsrc {Init}"
 * sourcing from resources.  In the below case "source -rsrc {Init}"
 * will load the TEXT resource named "Init".
 * will load the TEXT resource named "Init".
 */
 */
read 'TEXT' (TCL_LIBRARY_RESOURCES, "Init", purgeable, preload) ":::tcl" TCL_VERSION ":library:init.tcl";
read 'TEXT' (TCL_LIBRARY_RESOURCES, "Init", purgeable, preload) ":::tcl" TCL_VERSION ":library:init.tcl";
read 'TEXT' (ITCL_LIBRARY_RESOURCES, "itcl", purgeable,preload) "::library:itcl.tcl";
read 'TEXT' (ITCL_LIBRARY_RESOURCES, "itcl", purgeable,preload) "::library:itcl.tcl";
/*
/*
 * The following resource is used when creating the 'env' variable in
 * The following resource is used when creating the 'env' variable in
 * the Macintosh environment.  The creation mechanisim looks for the
 * the Macintosh environment.  The creation mechanisim looks for the
 * 'STR#' resource named "Tcl Environment Variables" rather than a
 * 'STR#' resource named "Tcl Environment Variables" rather than a
 * specific resource number.  (In other words, feel free to change the
 * specific resource number.  (In other words, feel free to change the
 * resource id if it conflicts with your application.)  Each string in
 * resource id if it conflicts with your application.)  Each string in
 * the resource must be of the form "KEYWORD=SOME STRING".  See Tcl
 * the resource must be of the form "KEYWORD=SOME STRING".  See Tcl
 * documentation for futher information about the env variable.
 * documentation for futher information about the env variable.
 *
 *
 * A good example of something you may want to set is: "TCL_LIBRARY=My
 * A good example of something you may want to set is: "TCL_LIBRARY=My
 * disk:etc."
 * disk:etc."
 */
 */
resource 'STR#' (128, "Tcl Environment Variables") {
resource 'STR#' (128, "Tcl Environment Variables") {
        {       "SCHEDULE_NAME=Agent Controller Schedule",
        {       "SCHEDULE_NAME=Agent Controller Schedule",
                "SCHEDULE_PATH=Lozoya:System Folder:Tcl Lib:Tcl-Scheduler"
                "SCHEDULE_PATH=Lozoya:System Folder:Tcl Lib:Tcl-Scheduler"
        };
        };
};
};
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.