Subversion Repositories tendra.SVN

Rev

Rev 7 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
7 7u83 2
 * Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
3
 * All rights reserved.
4
 *
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions are met:
7
 *
8
 * 1. Redistributions of source code must retain the above copyright notice,
9
 *    this list of conditions and the following disclaimer.
10
 * 2. Redistributions in binary form must reproduce the above copyright notice,
11
 *    this list of conditions and the following disclaimer in the documentation
12
 *    and/or other materials provided with the distribution.
13
 * 3. Neither the name of The TenDRA Project nor the names of its contributors
14
 *    may be used to endorse or promote products derived from this software
15
 *    without specific, prior written permission.
16
 *
17
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
18
 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
21
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
 *
29
 * $Id$
30
 */
31
/*
2 7u83 32
    		 Crown Copyright (c) 1997
7 7u83 33
 
2 7u83 34
    This TenDRA(r) Computer Program is subject to Copyright
35
    owned by the United Kingdom Secretary of State for Defence
36
    acting through the Defence Evaluation and Research Agency
37
    (DERA).  It is made available to Recipients with a
38
    royalty-free licence for its use, reproduction, transfer
39
    to other parties and amendment for any purpose not excluding
40
    product development provided that any such use et cetera
41
    shall be deemed to be acceptance of the following conditions:-
7 7u83 42
 
2 7u83 43
        (1) Its Recipients shall ensure that this Notice is
44
        reproduced upon any copies or amended versions of it;
7 7u83 45
 
2 7u83 46
        (2) Any amended version of it shall be clearly marked to
47
        show both the nature of and the organisation responsible
48
        for the relevant amendment or amendments;
7 7u83 49
 
2 7u83 50
        (3) Its onward transfer from a recipient to another
51
        party shall be deemed to be that party's acceptance of
52
        these conditions;
7 7u83 53
 
2 7u83 54
        (4) DERA gives no warranty or assurance as to its
55
        quality or suitability for any purpose and DERA accepts
56
        no liability whatsoever in relation to any use to which
57
        it may be put.
58
*/
59
 
60
 
61
#ifndef UNIT_INCLUDED
62
#define UNIT_INCLUDED
63
 
64
 
65
/*
66
    TOKEN/TAG DECLARATIONS/DEFINITIONS
67
 
68
    This file contains the routines for decoding token declarations, token
69
    definitions, tag declarations, tag definitions and the standard unit
70
    types associated with them.
71
*/
72
 
7 7u83 73
extern void token_sort(object *, sortname, char *, long);
74
extern void read_no_labs(void);
75
extern void de_tagdec_props(void);
76
extern void de_tagdef_props(void);
77
extern void de_tokdec_props(void);
78
extern void de_tokdef_props(void);
79
extern void de_al_tagdef_props(void);
80
extern void de_dg_comp_props(void);
81
extern void de_diag_type_unit(void);
82
extern void de_diag_unit(void);
83
extern void de_linkinfo_props(void);
84
extern void de_version_props(void);
85
extern void de_tld2_unit(void);
86
extern void de_tld_unit(void);
87
extern void de_make_version(char *);
88
extern void de_magic(char *);
89
extern long max_lab_no;
90
extern int show_usage;
91
extern int diagnostics;
92
extern int versions;
2 7u83 93
 
94
 
95
/*
96
    UNIT USAGE INFORMATION
97
 
98
    These macros describe the units decoded by the routines above and
99
    give the flags which control their use.
100
*/
101
 
102
#define MSG_tagdec_props		"TAG DECLARATIONS"
103
#define MSG_tagdef_props		"TAG DEFINITIONS"
104
#define MSG_tokdec_props		"TOKEN DECLARATIONS"
105
#define MSG_tokdef_props		"TOKEN DEFINITIONS"
106
#define MSG_al_tagdef_props		"ALIGNMENT TAG DEFINITIONS"
107
#define MSG_dg_comp_props		"DIAGNOSTIC INFORMATION"
108
#define MSG_diag_type_unit		"DIAGNOSTIC TYPE INFORMATION"
109
#define MSG_diag_unit			"DIAGNOSTIC INFORMATION"
110
#define MSG_linkinfo_props		"LINKING INFORMATION"
111
#define MSG_version_props		"TDF VERSION NUMBER"
112
#define MSG_tld2_unit			"LINKER INFORMATION"
113
#define MSG_tld_unit			"LINKER INFORMATION"
114
 
115
#define OPT_tagdec_props		1
116
#define OPT_tagdef_props		1
117
#define OPT_tokdec_props		1
118
#define OPT_tokdef_props		1
119
#define OPT_al_tagdef_props		1
120
#define OPT_dg_comp_props		diagnostics
121
#define OPT_diag_type_unit		diagnostics
122
#define OPT_diag_unit			diagnostics
123
#define OPT_linkinfo_props		show_usage
124
#define OPT_version_props		versions
125
#define OPT_tld2_unit			show_usage
126
#define OPT_tld_unit			show_usage
127
 
128
 
129
#endif