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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itk/] [mac/] [itkMacLibrary.r] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * tkMacLibrary.r --
3
 *
4
 *      This file creates resources for use in most Tk applications.
5
 *      This is designed to be an example of using the Tcl/Tk
6
 *      libraries in a Macintosh Application.
7
 *
8
 * Copyright (c) 1996 Sun Microsystems, Inc.
9
 *
10
 * See the file "license.terms" for information on usage and redistribution
11
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12
 *
13
 * SCCS: @(#) tkMacLibrary.r 1.5 96/10/03 17:54:21
14
 */
15
 
16
#include 
17
#include 
18
#include 
19
 
20
/*
21
 * The folowing include and defines help construct
22
 * the version string for Tcl.
23
 */
24
 
25
#define RESOURCE_INCLUDED
26
#include 
27
#include 
28
#include "itcl.h"
29
#include "itk.h"
30
 
31
#if (TK_RELEASE_LEVEL == 0)
32
#   define RELEASE_LEVEL alpha
33
#elif (TK_RELEASE_LEVEL == 1)
34
#   define RELEASE_LEVEL beta
35
#elif (TK_RELEASE_LEVEL == 2)
36
#   define RELEASE_LEVEL final
37
#endif
38
 
39
#if (TK_RELEASE_LEVEL == 2)
40
#   define MINOR_VERSION (ITCL_MINOR_VERSION * 16) + TK_RELEASE_SERIAL
41
#else
42
#   define MINOR_VERSION ITCL_MINOR_VERSION * 16
43
#endif
44
 
45
#define RELEASE_CODE 0x00
46
 
47
#define ITCL_LIBRARY_RESOURCES 3000
48
#define ITK_LIBRARY_RESOURCES 3500
49
 
50
resource 'vers' (1) {
51
        ITCL_MAJOR_VERSION, MINOR_VERSION,
52
        RELEASE_LEVEL, 0x00, verUS,
53
        ITK_PATCH_LEVEL,
54
        ITK_PATCH_LEVEL ", by Michael McLennan © 1993-1998" "\n" "Lucent Technologies, Inc."
55
};
56
 
57
resource 'vers' (2) {
58
        ITCL_MAJOR_VERSION, MINOR_VERSION,
59
        RELEASE_LEVEL, 0x00, verUS,
60
        ITK_PATCH_LEVEL,
61
        "ItkWish " ITK_PATCH_LEVEL " © 1993-1998"
62
};
63
 
64
 
65
#define ITCL_LIBRARY_RESOURCES 2000
66
#define ITK_LIBRARY_RESOURCES 3500
67
/*
68
 * The -16397 string will be displayed by Finder when a user
69
 * tries to open the shared library. The string should
70
 * give the user a little detail about the library's capabilities
71
 * and enough information to install the library in the correct location.
72
 * A similar string should be placed in all shared libraries.
73
 */
74
resource 'STR ' (-16397, purgeable) {
75
        "Itk Library\n\n"
76
        "This is the library needed to run add Itcl to the Tcl/Tk shell. "
77
        "To work properly, it should be placed in the ŒTool Command Languageč folder "
78
        "within the Extensions folder."
79
};
80
 
81
 
82
/*
83
 * We now load the Tk library into the resource fork of the library.
84
 */
85
 
86
#include "itkMacTclCode.r"
87
 
88
read 'TEXT' (ITK_LIBRARY_RESOURCES+12, "itk:tclIndex", purgeable)
89
        "::mac:tclIndex";
90
data 'TEXT' (ITK_LIBRARY_RESOURCES+13,"pkgIndex",purgeable, preload) {
91
        "# Tcl package index file, version 1.0\n"
92
        "package ifneeded Itk 3.0 [list package require Itcl 3.0 \; load [file join $dir itk30[info sharedlibextension]] Itk \; source -rsrc itk:tclIndex]\n"
93
};
94
 

powered by: WebSVN 2.1.0

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