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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tcl/] [mac/] [tclMacApplication.r] - Blame information for rev 1782

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-1997 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
 * RCS: @(#) $Id: tclMacApplication.r,v 1.1.1.1 2002-01-16 10:25:30 markom Exp $
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
 
27
#if (TCL_RELEASE_LEVEL == 0)
28
#   define RELEASE_LEVEL alpha
29
#elif (TCL_RELEASE_LEVEL == 1)
30
#   define RELEASE_LEVEL beta
31
#elif (TCL_RELEASE_LEVEL == 2)
32
#   define RELEASE_LEVEL final
33
#endif
34
 
35
#if (TCL_RELEASE_LEVEL == 2)
36
#   define MINOR_VERSION (TCL_MINOR_VERSION * 16) + TCL_RELEASE_SERIAL
37
#else
38
#   define MINOR_VERSION TCL_MINOR_VERSION * 16
39
#endif
40
 
41
resource 'vers' (1) {
42
        TCL_MAJOR_VERSION, MINOR_VERSION,
43
        RELEASE_LEVEL, 0x00, verUS,
44
        TCL_PATCH_LEVEL,
45
        TCL_PATCH_LEVEL ", by Ray Johnson © Sun Microsystems"
46
};
47
 
48
resource 'vers' (2) {
49
        TCL_MAJOR_VERSION, MINOR_VERSION,
50
        RELEASE_LEVEL, 0x00, verUS,
51
        TCL_PATCH_LEVEL,
52
        "Tcl Shell " TCL_PATCH_LEVEL " © 1996"
53
};
54
 
55
#define TCL_APP_CREATOR 'Tcl '
56
 
57
type TCL_APP_CREATOR as 'STR ';
58
resource TCL_APP_CREATOR (0, purgeable) {
59
        "Tcl Shell " TCL_PATCH_LEVEL " © 1996"
60
};
61
 
62
/*
63
 * The 'kind' resource works with a 'BNDL' in Macintosh Easy Open
64
 * to affect the text the Finder displays in the "kind" column and
65
 * file info dialog.  This information will be applied to all files
66
 * with the listed creator and type.
67
 */
68
 
69
resource 'kind' (128, "Tcl kind", purgeable) {
70
        TCL_APP_CREATOR,
71
        0, /* region = USA */
72
        {
73
                'APPL', "Tcl Shell",
74
        }
75
};

powered by: WebSVN 2.1.0

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