Subversion Repositories tendra.SVN

Rev

Rev 2 | 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
/*
62
$Log: comment.h,v $
63
 * Revision 1.1.1.1  1998/01/17  15:56:02  release
64
 * First version to be checked into rolling release.
65
 *
66
 * Revision 1.2  1995/12/18  13:11:03  wfs
67
 * Put hppatrans uder cvs control. Major Changes made since last release
68
 * include:
69
 * (i) PIC code generation.
70
 * (ii) Profiling.
71
 * (iii) Dynamic Initialization.
72
 * (iv) Debugging of Exception Handling and Diagnostics.
73
 *
74
 * Revision 5.1  1995/09/15  13:29:28  wfs
75
 * Minor changes to stop the gcc compiler from complaining.
76
 *
77
 * Revision 5.0  1995/08/25  13:49:53  wfs
78
 * Preperation for August 95 Glue release
79
 *
80
 * Revision 4.0  1995/08/25  13:34:00  wfs
81
 * *** empty log message ***
82
 *
83
 * Revision 4.0  1995/08/25  13:34:00  wfs
84
 * *** empty log message ***
85
 *
86
 * Revision 3.4  1995/08/25  10:49:24  wfs
87
 * *** empty log message ***
88
 *
89
 * Revision 3.4  1995/08/25  10:49:24  wfs
90
 * *** empty log message ***
91
 *
92
 * Revision 3.1  95/04/10  16:25:58  16:25:58  wfs (William Simmonds)
93
 * Apr95 tape version.
7 7u83 94
 *
2 7u83 95
 * Revision 3.0  95/03/30  11:14:37  11:14:37  wfs (William Simmonds)
96
 * Mar95 tape version with CRCR95_178 bug fix.
7 7u83 97
 *
2 7u83 98
 * Revision 2.0  95/03/15  15:25:30  15:25:30  wfs (William Simmonds)
99
 * spec 3.1 changes implemented, tests outstanding.
7 7u83 100
 *
2 7u83 101
 * Revision 1.1  95/01/11  13:36:31  13:36:31  wfs (William Simmonds)
102
 * Initial revision
7 7u83 103
 *
2 7u83 104
*/
105
 
106
 
107
#ifndef COMMENT_INCLUDED
108
#define COMMENT_INCLUDED
109
 
110
#include "exptypes.h"
111
#include "codetypes.h"
112
#include "installtypes.h"
113
 
114
 
7 7u83 115
extern bool do_comment;
116
extern void fail(char *);
2 7u83 117
 
118
 
119
#ifdef DO_COMMENT
120
 
121
/* Commenting routines */
7 7u83 122
extern void comment(char *);
123
extern void comment1(char *, long);
124
extern void comment2(char *, long, long);
125
extern void comment3(char *, long, long, long);
126
extern void comment4(char *, long, long, long, long);
2 7u83 127
 
128
#else /* DO_COMMENT */
129
 
130
/* Dummy commenting macros */
7 7u83 131
#define comment(s)
132
#define comment1(s, a)
133
#define comment2(s, a, b)
134
#define comment3(s, a, b, c)
135
#define comment4(s, a, b, c, d)
2 7u83 136
 
137
#endif /* DO_COMMENT */
138
 
139
 
140
#ifdef DO_FULLCOMMENT
141
 
142
/* Full comments */
7 7u83 143
#define FULLCOMMENT(s)		comment(s)
144
#define FULLCOMMENT1(s, a)		comment1(s, a)
145
#define FULLCOMMENT2(s, a, b)		comment2(s, a, b)
146
#define FULLCOMMENT3(s, a, b, c)	comment3(s, a, b, c)
147
#define FULLCOMMENT4(s, a, b, c, d)	comment4(s, a, b, c, d)
2 7u83 148
 
149
#ifdef DO_PRTDF
150
 
151
/* TDF printing routines */
7 7u83 152
#define EXP_NUM(x)			(int)(x)
153
#define SH_NAME(x)			sh_name(x)
154
#define TAG_NAME(x)			tag_name(x)
155
#define ANSDISCRIM_NAME(x)		ansdiscrim_name(x)
156
#define PRTDF(s, e)			prtdf(s, e)
2 7u83 157
 
158
#else /* DO_PRTDF */
159
 
160
/* Dummy TDF printing macros */
7 7u83 161
#define EXP_NUM(x)			(int)(x)
162
#define SH_NAME(x)			(0)
163
#define TAG_NAME(x)			(0)
164
#define ANSDISCRIM_NAME(x)		(0)
165
#define PRTDF(s, e)			(0)
2 7u83 166
 
167
#endif /* DO_PRTDF */
168
 
169
#else /* DO_FULLCOMMENT */
170
 
171
/* Dummy full commenting macros */
7 7u83 172
#define FULLCOMMENT(s)
173
#define FULLCOMMENT1(s, a)
174
#define FULLCOMMENT2(s, a, b)
175
#define FULLCOMMENT3(s, a, b, c)
176
#define FULLCOMMENT4(s, a, b, c, d)
177
#define PRTDF(s, e)
2 7u83 178
 
179
#endif /* DO_FULLCOMMENT */
180
 
181
#endif /* COMMENT_INCLUDED */