Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
/* 	$Id: fail.h,v 1.1.1.1 1998/01/17 15:56:00 release Exp $	 */
32
 
33
/*
34
$Log: fail.h,v $
35
 * Revision 1.1.1.1  1998/01/17  15:56:00  release
36
 * First version to be checked into rolling release.
37
 *
38
 * Revision 1.1.1.1  1995/03/23  10:39:07  john
39
 * Entered into CVS
40
 *
41
 * Revision 1.12  1995/01/12  15:05:48  john
42
 * Changed error messages
43
 *
44
*/
45
 
46
 
47
#ifndef FAIL_H
48
#define FAIL_H
49
#define MAX_WARNINGS 10
50
typedef enum {FILE_OPEN,
51
	      USEAGE,
52
	      OVERFLOW,
53
	      CROSS_IMPLEMENTATION,
54
	      REG_ALLOC,
55
	      IMPLEMENTATION,
56
	      INSTRUCTION_OUTPUT,
57
	      MISC,
58
	      INTERNAL
59
	      } fail_conditions;
60
extern void alphafail PROTO_S ((fail_conditions,char *,char *));
61
extern void failer PROTO_S ((char *));
62
 
63
#define alphawarn(X) fprintf(stderr,"alphatrans: warning!: %s\n",X);
64
 
65
/* Error messages */
66
 
67
#define NO_ERROR_HANDLER       INTERNAL,"Error handler not present",""
68
#define TAG_NOT_IMPLEMENTED    IMPLEMENTATION,"Unimplemented tag",""
69
#define BIG_LABEL		IMPLEMENTATION,"64 bit labels not supported",""
70
#define BIG_MULTIPLICATION	OVERFLOW,"64 bit multiplication failed",""
71
#define BIG_DIVISION		OVERFLOW,"64 bit division failed",""
72
#define BIG_ADDITION		OVERFLOW,"64 bit addition failed",""
73
#define BIG_SUBTRACTION	OVERFLOW,"64 bit subtraction failed",""
74
#define ILLEGAL_FLAG		USEAGE,"Illegal flag"
75
#define TOO_FEW_PARAMETERS	USEAGE,"Not enough parameters",""
76
#define OPENING_T_FILE		INTERNAL,"Cannot open .t file:"
77
#define CANNOT_OPEN_FILE	FILE_OPEN,""
78
#define OUT_OF_TREGS		REG_ALLOC,"Too many fixed point t-regs required",""
79
#define OUT_OF_F_TREGS		REG_ALLOC,"Too many floating point t-regs required",""
80
#define ILLEGAL_BLOCK_COPY	REG_ALLOC,"illegal block copy.  This should not happen",""
81
#define NO_DIAGNOSTICS_IN_TDF	INTERNAL,"This TDF does not contain diagnostic information",""
82
#endif
83
 
84