Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line -... Line 1...
-
 
1
/*
-
 
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
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1997
32
    		 Crown Copyright (c) 1997
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
29
 
59
 
30
 
60
 
31
/*
61
/*
32
$Log: comment.h,v $
62
$Log: comment.h,v $
33
 * Revision 1.1.1.1  1998/01/17  15:56:02  release
63
 * Revision 1.1.1.1  1998/01/17  15:56:02  release
34
 * First version to be checked into rolling release.
64
 * First version to be checked into rolling release.
35
 *
65
 *
Line 41... Line 71...
41
 * (iii) Dynamic Initialization.
71
 * (iii) Dynamic Initialization.
42
 * (iv) Debugging of Exception Handling and Diagnostics.
72
 * (iv) Debugging of Exception Handling and Diagnostics.
43
 *
73
 *
44
 * Revision 5.1  1995/09/15  13:29:28  wfs
74
 * Revision 5.1  1995/09/15  13:29:28  wfs
45
 * Minor changes to stop the gcc compiler from complaining.
75
 * Minor changes to stop the gcc compiler from complaining.
46
 *
76
 *
47
 * Revision 5.0  1995/08/25  13:49:53  wfs
77
 * Revision 5.0  1995/08/25  13:49:53  wfs
48
 * Preperation for August 95 Glue release
78
 * Preperation for August 95 Glue release
49
 *
79
 *
50
 * Revision 4.0  1995/08/25  13:34:00  wfs
80
 * Revision 4.0  1995/08/25  13:34:00  wfs
51
 * *** empty log message ***
81
 * *** empty log message ***
52
 *
82
 *
53
 * Revision 4.0  1995/08/25  13:34:00  wfs
83
 * Revision 4.0  1995/08/25  13:34:00  wfs
54
 * *** empty log message ***
84
 * *** empty log message ***
55
 *
85
 *
56
 * Revision 3.4  1995/08/25  10:49:24  wfs
86
 * Revision 3.4  1995/08/25  10:49:24  wfs
57
 * *** empty log message ***
87
 * *** empty log message ***
58
 *
88
 *
59
 * Revision 3.4  1995/08/25  10:49:24  wfs
89
 * Revision 3.4  1995/08/25  10:49:24  wfs
60
 * *** empty log message ***
90
 * *** empty log message ***
61
 *
91
 *
62
 * Revision 3.1  95/04/10  16:25:58  16:25:58  wfs (William Simmonds)
92
 * Revision 3.1  95/04/10  16:25:58  16:25:58  wfs (William Simmonds)
63
 * Apr95 tape version.
93
 * Apr95 tape version.
64
 * 
94
 *
65
 * Revision 3.0  95/03/30  11:14:37  11:14:37  wfs (William Simmonds)
95
 * Revision 3.0  95/03/30  11:14:37  11:14:37  wfs (William Simmonds)
66
 * Mar95 tape version with CRCR95_178 bug fix.
96
 * Mar95 tape version with CRCR95_178 bug fix.
67
 * 
97
 *
68
 * Revision 2.0  95/03/15  15:25:30  15:25:30  wfs (William Simmonds)
98
 * Revision 2.0  95/03/15  15:25:30  15:25:30  wfs (William Simmonds)
69
 * spec 3.1 changes implemented, tests outstanding.
99
 * spec 3.1 changes implemented, tests outstanding.
70
 * 
100
 *
71
 * Revision 1.1  95/01/11  13:36:31  13:36:31  wfs (William Simmonds)
101
 * Revision 1.1  95/01/11  13:36:31  13:36:31  wfs (William Simmonds)
72
 * Initial revision
102
 * Initial revision
73
 * 
103
 *
74
*/
104
*/
75
 
105
 
76
 
106
 
77
#ifndef COMMENT_INCLUDED
107
#ifndef COMMENT_INCLUDED
78
#define COMMENT_INCLUDED
108
#define COMMENT_INCLUDED
Line 80... Line 110...
80
#include "exptypes.h"
110
#include "exptypes.h"
81
#include "codetypes.h"
111
#include "codetypes.h"
82
#include "installtypes.h"
112
#include "installtypes.h"
83
 
113
 
84
 
114
 
85
extern bool do_comment ;
115
extern bool do_comment;
86
extern void fail PROTO_S ( ( char * ) ) ;
116
extern void fail(char *);
87
 
117
 
88
 
118
 
89
#ifdef DO_COMMENT
119
#ifdef DO_COMMENT
90
 
120
 
91
/* Commenting routines */
121
/* Commenting routines */
92
extern void comment PROTO_S ( ( char *) ) ;
122
extern void comment(char *);
93
extern void comment1 PROTO_S ( ( char *, long ) ) ;
123
extern void comment1(char *, long);
94
extern void comment2 PROTO_S ( ( char *, long, long ) ) ;
124
extern void comment2(char *, long, long);
95
extern void comment3 PROTO_S ( ( char *, long, long, long ) ) ;
125
extern void comment3(char *, long, long, long);
96
extern void comment4 PROTO_S ( ( char *, long, long, long, long ) ) ;
126
extern void comment4(char *, long, long, long, long);
97
 
127
 
98
#else /* DO_COMMENT */
128
#else /* DO_COMMENT */
99
 
129
 
100
/* Dummy commenting macros */
130
/* Dummy commenting macros */
101
#define comment( s )			
131
#define comment(s)
102
#define comment1( s, a )		
132
#define comment1(s, a)
103
#define comment2( s, a, b )		
133
#define comment2(s, a, b)
104
#define comment3( s, a, b, c )		
134
#define comment3(s, a, b, c)
105
#define comment4( s, a, b, c, d )	
135
#define comment4(s, a, b, c, d)
106
 
136
 
107
#endif /* DO_COMMENT */
137
#endif /* DO_COMMENT */
108
 
138
 
109
 
139
 
110
#ifdef DO_FULLCOMMENT
140
#ifdef DO_FULLCOMMENT
111
 
141
 
112
/* Full comments */
142
/* Full comments */
113
#define FULLCOMMENT( s )		comment ( s )
143
#define FULLCOMMENT(s)		comment(s)
114
#define FULLCOMMENT1( s, a )		comment1 ( s, a )
144
#define FULLCOMMENT1(s, a)		comment1(s, a)
115
#define FULLCOMMENT2( s, a, b )		comment2 ( s, a, b )
145
#define FULLCOMMENT2(s, a, b)		comment2(s, a, b)
116
#define FULLCOMMENT3( s, a, b, c )	comment3 ( s, a, b, c )
146
#define FULLCOMMENT3(s, a, b, c)	comment3(s, a, b, c)
117
#define FULLCOMMENT4( s, a, b, c, d )	comment4 ( s, a, b, c, d )
147
#define FULLCOMMENT4(s, a, b, c, d)	comment4(s, a, b, c, d)
118
 
148
 
119
#ifdef DO_PRTDF
149
#ifdef DO_PRTDF
120
 
150
 
121
/* TDF printing routines */
151
/* TDF printing routines */
122
#define EXP_NUM( x )			( int ) ( x )
152
#define EXP_NUM(x)			(int)(x)
123
#define SH_NAME( x )			sh_name ( x )
153
#define SH_NAME(x)			sh_name(x)
124
#define TAG_NAME( x )			tag_name ( x )
154
#define TAG_NAME(x)			tag_name(x)
125
#define ANSDISCRIM_NAME( x )		ansdiscrim_name ( x )
155
#define ANSDISCRIM_NAME(x)		ansdiscrim_name(x)
126
#define PRTDF( s, e )			prtdf ( s, e )
156
#define PRTDF(s, e)			prtdf(s, e)
127
 
157
 
128
#else /* DO_PRTDF */
158
#else /* DO_PRTDF */
129
 
159
 
130
/* Dummy TDF printing macros */
160
/* Dummy TDF printing macros */
131
#define EXP_NUM( x )			( int ) ( x )
161
#define EXP_NUM(x)			(int)(x)
132
#define SH_NAME( x )			( 0 )
162
#define SH_NAME(x)			(0)
133
#define TAG_NAME( x )			( 0 )
163
#define TAG_NAME(x)			(0)
134
#define ANSDISCRIM_NAME( x )		( 0 )
164
#define ANSDISCRIM_NAME(x)		(0)
135
#define PRTDF( s, e )			( 0 )
165
#define PRTDF(s, e)			(0)
136
 
166
 
137
#endif /* DO_PRTDF */
167
#endif /* DO_PRTDF */
138
 
168
 
139
#else /* DO_FULLCOMMENT */
169
#else /* DO_FULLCOMMENT */
140
 
170
 
141
/* Dummy full commenting macros */
171
/* Dummy full commenting macros */
142
#define FULLCOMMENT( s )		
172
#define FULLCOMMENT(s)
143
#define FULLCOMMENT1( s, a )		
173
#define FULLCOMMENT1(s, a)
144
#define FULLCOMMENT2( s, a, b )		
174
#define FULLCOMMENT2(s, a, b)
145
#define FULLCOMMENT3( s, a, b, c )	
175
#define FULLCOMMENT3(s, a, b, c)
146
#define FULLCOMMENT4( s, a, b, c, d )	
176
#define FULLCOMMENT4(s, a, b, c, d)
147
#define PRTDF( s, e )			
177
#define PRTDF(s, e)
148
 
178
 
149
#endif /* DO_FULLCOMMENT */
179
#endif /* DO_FULLCOMMENT */
150
 
180
 
151
#endif /* COMMENT_INCLUDED */
181
#endif /* COMMENT_INCLUDED */