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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [mac/] [itclMacApplication.r] - Blame information for rev 1773

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

Line No. Rev Author Line
1 578 markom
/*
2
 * tclMacApplication.r --
3
 *
4
 *      This file creates resources for use Tcl Shell application.
5
 *      It should be viewed as an example of how to create a new
6
 *      Tcl application using the shared Tcl libraries.
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: @(#) tclMacApplication.r 1.1 96/09/11 21:12:54
14
 */
15
 
16
#include 
17
#include 
18
 
19
/*
20
 * The folowing include and defines help construct
21
 * the version string for Tcl.
22
 */
23
 
24
#define RESOURCE_INCLUDED
25
#include "tcl.h"
26
#include "itcl.h"
27
#include "itclPatch.h"
28
 
29
/* Should really have one of these in itcl too, but for now... */
30
 
31
#if (TCL_RELEASE_LEVEL == 0)
32
#   define RELEASE_LEVEL alpha
33
#elif (TCL_RELEASE_LEVEL == 1)
34
#   define RELEASE_LEVEL beta
35
#elif (TCL_RELEASE_LEVEL == 2)
36
#   define RELEASE_LEVEL final
37
#endif
38
 
39
#if (TCL_RELEASE_LEVEL == 2)
40
#   define MINOR_VERSION (ITCL_MINOR_VERSION * 16) + TCL_RELEASE_SERIAL
41
#else
42
#   define MINOR_VERSION ITCL_MINOR_VERSION * 16
43
#endif
44
 
45
resource 'vers' (1) {
46
        ITCL_MAJOR_VERSION, MINOR_VERSION,
47
        RELEASE_LEVEL, 0x00, verUS,
48
        ITCL_PATCH_LEVEL,
49
        ITCL_PATCH_LEVEL ", by Michael McLennan © Lucent Technologies, Inc."
50
};
51
 
52
resource 'vers' (2) {
53
        ITCL_MAJOR_VERSION, MINOR_VERSION,
54
        RELEASE_LEVEL, 0x00, verUS,
55
        ITCL_PATCH_LEVEL,
56
        "Itcl Shell " ITCL_PATCH_LEVEL " © 1993-1998"
57
};
58
 
59
#define ITCL_APP_CREATOR 'ITcL'
60
 
61
type ITCL_APP_CREATOR as 'STR ';
62
resource ITCL_APP_CREATOR (0, purgeable) {
63
        "Itcl Shell " ITCL_PATCH_LEVEL " © 1993-1998"
64
};
65
 
66
/*
67
 * The 'kind' resource works with a 'BNDL' in Macintosh Easy Open
68
 * to affect the text the Finder displays in the "kind" column and
69
 * file info dialog.  This information will be applied to all files
70
 * with the listed creator and type.
71
 */
72
 
73
resource 'kind' (128, "Itcl kind", purgeable) {
74
        ITCL_APP_CREATOR,
75
        0, /* region = USA */
76
        {
77
                'APPL', "Itcl Shell",
78
        }
79
};
80
 
81
/*
82
 * The following resource is used when creating the 'env' variable in
83
 * the Macintosh environment.  The creation mechanisim looks for the
84
 * 'STR#' resource named "Tcl Environment Variables" rather than a
85
 * specific resource number.  (In other words, feel free to change the
86
 * resource id if it conflicts with your application.)  Each string in
87
 * the resource must be of the form "KEYWORD=SOME STRING".  See Tcl
88
 * documentation for futher information about the env variable.
89
 *
90
 * A good example of something you may want to set is: "TCL_LIBRARY=My
91
 * disk:etc."
92
 */
93
 
94
resource 'STR#' (128, "Tcl Environment Variables") {
95
        {       "SCHEDULE_NAME=Agent Controller Schedule",
96
                "SCHEDULE_PATH=Lozoya:System Folder:Tcl Lib:Tcl-Scheduler"
97
        };
98
};
99
 

powered by: WebSVN 2.1.0

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