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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itk/] [mac/] [itkMacLibrary.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
/*
/*
 * tkMacLibrary.r --
 * tkMacLibrary.r --
 *
 *
 *      This file creates resources for use in most Tk applications.
 *      This file creates resources for use in most Tk applications.
 *      This is designed to be an example of using the Tcl/Tk
 *      This is designed to be an example of using the Tcl/Tk
 *      libraries in a Macintosh Application.
 *      libraries in a Macintosh Application.
 *
 *
 * Copyright (c) 1996 Sun Microsystems, Inc.
 * Copyright (c) 1996 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: @(#) tkMacLibrary.r 1.5 96/10/03 17:54:21
 * SCCS: @(#) tkMacLibrary.r 1.5 96/10/03 17:54:21
 */
 */
#include 
#include 
#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 
#include 
#include 
#include 
#include "itcl.h"
#include "itcl.h"
#include "itk.h"
#include "itk.h"
#if (TK_RELEASE_LEVEL == 0)
#if (TK_RELEASE_LEVEL == 0)
#   define RELEASE_LEVEL alpha
#   define RELEASE_LEVEL alpha
#elif (TK_RELEASE_LEVEL == 1)
#elif (TK_RELEASE_LEVEL == 1)
#   define RELEASE_LEVEL beta
#   define RELEASE_LEVEL beta
#elif (TK_RELEASE_LEVEL == 2)
#elif (TK_RELEASE_LEVEL == 2)
#   define RELEASE_LEVEL final
#   define RELEASE_LEVEL final
#endif
#endif
#if (TK_RELEASE_LEVEL == 2)
#if (TK_RELEASE_LEVEL == 2)
#   define MINOR_VERSION (ITCL_MINOR_VERSION * 16) + TK_RELEASE_SERIAL
#   define MINOR_VERSION (ITCL_MINOR_VERSION * 16) + TK_RELEASE_SERIAL
#else
#else
#   define MINOR_VERSION ITCL_MINOR_VERSION * 16
#   define MINOR_VERSION ITCL_MINOR_VERSION * 16
#endif
#endif
#define RELEASE_CODE 0x00
#define RELEASE_CODE 0x00
#define ITCL_LIBRARY_RESOURCES 3000
#define ITCL_LIBRARY_RESOURCES 3000
#define ITK_LIBRARY_RESOURCES 3500
#define ITK_LIBRARY_RESOURCES 3500
resource 'vers' (1) {
resource 'vers' (1) {
        ITCL_MAJOR_VERSION, MINOR_VERSION,
        ITCL_MAJOR_VERSION, MINOR_VERSION,
        RELEASE_LEVEL, 0x00, verUS,
        RELEASE_LEVEL, 0x00, verUS,
        ITK_PATCH_LEVEL,
        ITK_PATCH_LEVEL,
        ITK_PATCH_LEVEL ", by Michael McLennan © 1993-1998" "\n" "Lucent Technologies, Inc."
        ITK_PATCH_LEVEL ", by Michael McLennan © 1993-1998" "\n" "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,
        ITK_PATCH_LEVEL,
        ITK_PATCH_LEVEL,
        "ItkWish " ITK_PATCH_LEVEL " © 1993-1998"
        "ItkWish " ITK_PATCH_LEVEL " © 1993-1998"
};
};
#define ITCL_LIBRARY_RESOURCES 2000
#define ITCL_LIBRARY_RESOURCES 2000
#define ITK_LIBRARY_RESOURCES 3500
#define ITK_LIBRARY_RESOURCES 3500
/*
/*
 * The -16397 string will be displayed by Finder when a user
 * The -16397 string will be displayed by Finder when a user
 * tries to open the shared library. The string should
 * tries to open the shared library. The string should
 * give the user a little detail about the library's capabilities
 * give the user a little detail about the library's capabilities
 * and enough information to install the library in the correct location.
 * and enough information to install the library in the correct location.
 * A similar string should be placed in all shared libraries.
 * A similar string should be placed in all shared libraries.
 */
 */
resource 'STR ' (-16397, purgeable) {
resource 'STR ' (-16397, purgeable) {
        "Itk Library\n\n"
        "Itk Library\n\n"
        "This is the library needed to run add Itcl to the Tcl/Tk shell. "
        "This is the library needed to run add Itcl to the Tcl/Tk shell. "
        "To work properly, it should be placed in the ŒTool Command Languageč folder "
        "To work properly, it should be placed in the ŒTool Command Languageč folder "
        "within the Extensions folder."
        "within the Extensions folder."
};
};
/*
/*
 * We now load the Tk library into the resource fork of the library.
 * We now load the Tk library into the resource fork of the library.
 */
 */
#include "itkMacTclCode.r"
#include "itkMacTclCode.r"
read 'TEXT' (ITK_LIBRARY_RESOURCES+12, "itk:tclIndex", purgeable)
read 'TEXT' (ITK_LIBRARY_RESOURCES+12, "itk:tclIndex", purgeable)
        "::mac:tclIndex";
        "::mac:tclIndex";
data 'TEXT' (ITK_LIBRARY_RESOURCES+13,"pkgIndex",purgeable, preload) {
data 'TEXT' (ITK_LIBRARY_RESOURCES+13,"pkgIndex",purgeable, preload) {
        "# Tcl package index file, version 1.0\n"
        "# Tcl package index file, version 1.0\n"
        "package ifneeded Itk 3.0 [list package require Itcl 3.0 \; load [file join $dir itk30[info sharedlibextension]] Itk \; source -rsrc itk:tclIndex]\n"
        "package ifneeded Itk 3.0 [list package require Itcl 3.0 \; load [file join $dir itk30[info sharedlibextension]] Itk \; source -rsrc itk:tclIndex]\n"
};
};
 
 

powered by: WebSVN 2.1.0

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