2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
/*
|
|
|
34 |
VERSION INFORMATION
|
|
|
35 |
===================
|
|
|
36 |
|
|
|
37 |
--------------------------------------------------------------------------
|
|
|
38 |
$Header: /u/g/release/CVSROOT/Source/src/installers/sparc/common/comment.c,v 1.1.1.1 1998/01/17 15:55:53 release Exp $
|
|
|
39 |
--------------------------------------------------------------------------
|
|
|
40 |
$Log: comment.c,v $
|
|
|
41 |
* Revision 1.1.1.1 1998/01/17 15:55:53 release
|
|
|
42 |
* First version to be checked into rolling release.
|
|
|
43 |
*
|
|
|
44 |
* Revision 1.2 1995/05/26 12:56:43 john
|
|
|
45 |
* Reformatting
|
|
|
46 |
*
|
|
|
47 |
* Revision 1.1.1.1 1995/03/13 10:18:29 john
|
|
|
48 |
* Entered into CVS
|
|
|
49 |
*
|
|
|
50 |
* Revision 1.2 1994/07/07 16:11:33 djch
|
|
|
51 |
* Jul94 tape
|
|
|
52 |
*
|
|
|
53 |
* Revision 1.2 1994/07/07 16:11:33 djch
|
|
|
54 |
* Jul94 tape
|
|
|
55 |
*
|
|
|
56 |
* Revision 1.1 1994/05/03 14:49:32 djch
|
|
|
57 |
* Initial revision
|
|
|
58 |
*
|
|
|
59 |
* Revision 1.4 93/08/27 11:23:07 11:23:07 ra (Robert Andrews)
|
|
|
60 |
* Need to include common_types.h to shut lint up.
|
|
|
61 |
*
|
|
|
62 |
* Revision 1.3 93/08/13 14:35:24 14:35:24 ra (Robert Andrews)
|
|
|
63 |
* Got rid of the comment routines.
|
|
|
64 |
*
|
|
|
65 |
* Revision 1.2 93/06/29 14:22:54 14:22:54 ra (Robert Andrews)
|
|
|
66 |
* Added new variable, sparctrans, giving the executable name for use in
|
|
|
67 |
* error messages.
|
|
|
68 |
*
|
|
|
69 |
* Revision 1.1 93/06/24 14:58:03 14:58:03 ra (Robert Andrews)
|
|
|
70 |
* Initial revision
|
|
|
71 |
*
|
|
|
72 |
--------------------------------------------------------------------------
|
|
|
73 |
*/
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
#define SPARCTRANS_CODE
|
|
|
77 |
#include "config.h"
|
|
|
78 |
#include "common_types.h"
|
|
|
79 |
#include "comment.h"
|
|
|
80 |
#include "const.h"
|
|
|
81 |
#include "out.h"
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
/*
|
|
|
85 |
PROGRAM NAME
|
|
|
86 |
*/
|
|
|
87 |
|
|
|
88 |
char *sparctrans = "sparctrans" ;
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
/*
|
|
|
92 |
COMMENT FAILURES
|
|
|
93 |
*/
|
|
|
94 |
|
|
|
95 |
bool do_comment = 0 ;
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
/*
|
|
|
99 |
ERROR REPORTING ROUTINE
|
|
|
100 |
*/
|
|
|
101 |
|
|
|
102 |
void fail
|
|
|
103 |
PROTO_N ( ( mess ) )
|
|
|
104 |
PROTO_T ( char * mess ){
|
|
|
105 |
if ( do_comment ) {
|
|
|
106 |
outs ( "!! TRANSLATION FAILED : " ) ;
|
|
|
107 |
outs ( mess ) ;
|
|
|
108 |
outnl () ;
|
|
|
109 |
fflush ( as_file ) ;
|
|
|
110 |
}
|
|
|
111 |
fprintf ( stderr, "%s : error : %s\n", sparctrans, mess ) ;
|
|
|
112 |
if ( !do_comment ) exit ( EXIT_FAILURE ) ;
|
|
|
113 |
/* generate more code to give the error context when commenting */
|
|
|
114 |
return ;
|
|
|
115 |
}
|