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
#ifdef RUNTIME
32
#ifndef DEBUG_INCLUDED
33
#define DEBUG_INCLUDED
34
 
35
 
36
/*
37
    DEBUGGING ROUTINE DECLARATIONS
38
 
39
    The routines in this module are designed to aid in program development;
40
    they do not form part of the program proper.  They are only defined if
41
    the macro RUNTIME is defined.
42
*/
43
 
44
extern void DEBUG_access PROTO_S ( ( DECL_SPEC ) ) ;
45
extern void DEBUG_btype PROTO_S ( ( BASE_TYPE ) ) ;
46
extern void DEBUG_cinfo PROTO_S ( ( CLASS_INFO ) ) ;
47
extern void DEBUG_ctype PROTO_S ( ( CLASS_TYPE ) ) ;
48
extern void DEBUG_cusage PROTO_S ( ( CLASS_USAGE ) ) ;
49
extern void DEBUG_cv PROTO_S ( ( CV_SPEC ) ) ;
50
extern void DEBUG_dspec PROTO_S ( ( DECL_SPEC ) ) ;
51
extern void DEBUG_etype PROTO_S ( ( ENUM_TYPE ) ) ;
52
extern void DEBUG_exp PROTO_S ( ( EXP ) ) ;
53
extern void DEBUG_flt PROTO_S ( ( FLOAT ) ) ;
54
extern void DEBUG_ftype PROTO_S ( ( FLOAT_TYPE ) ) ;
55
extern void DEBUG_func PROTO_S ( ( IDENTIFIER ) ) ;
56
extern void DEBUG_graph PROTO_S ( ( GRAPH ) ) ;
57
extern void DEBUG_hashid PROTO_S ( ( HASHID ) ) ;
58
extern void DEBUG_hash_table PROTO_S ( ( string ) ) ;
59
extern void DEBUG_id PROTO_S ( ( IDENTIFIER ) ) ;
60
extern void DEBUG_id_long PROTO_S ( ( IDENTIFIER ) ) ;
61
extern void DEBUG_inst PROTO_S ( ( INSTANCE ) ) ;
62
extern void DEBUG_itype PROTO_S ( ( INT_TYPE ) ) ;
63
extern void DEBUG_lex PROTO_S ( ( int ) ) ;
64
extern void DEBUG_loc PROTO_S ( ( LOCATION * ) ) ;
65
extern void DEBUG_mangle PROTO_S ( ( IDENTIFIER ) ) ;
66
extern void DEBUG_member PROTO_S ( ( MEMBER ) ) ;
67
extern void DEBUG_members PROTO_S ( ( NAMESPACE ) ) ;
68
extern void DEBUG_nat PROTO_S ( ( NAT ) ) ;
69
extern void DEBUG_nspace PROTO_S ( ( NAMESPACE ) ) ;
70
extern void DEBUG_ntest PROTO_S ( ( NTEST ) ) ;
71
extern void DEBUG_ntype PROTO_S ( ( BUILTIN_TYPE ) ) ;
72
extern void DEBUG_offset PROTO_S ( ( OFFSET ) ) ;
73
extern void DEBUG_pptok PROTO_S ( ( PPTOKEN * ) ) ;
74
extern void DEBUG_pptoks PROTO_S ( ( PPTOKEN * ) ) ;
75
extern void DEBUG_sort PROTO_S ( ( TOKEN ) ) ;
76
extern void DEBUG_stmt PROTO_S ( ( EXP ) ) ;
77
extern void DEBUG_str PROTO_S ( ( STRING ) ) ;
78
extern void DEBUG_type PROTO_S ( ( TYPE ) ) ;
79
extern void DEBUG_unmangle PROTO_S ( ( CONST char * ) ) ;
80
extern void DEBUG_virt PROTO_S ( ( VIRTUAL ) ) ;
81
 
82
extern void DEBUG_source PROTO_S ( ( int ) ) ;
83
extern void DEBUG_where PROTO_S ( ( void ) ) ;
84
 
85
#if c_class_IMPLEMENTATION
86
extern void debug PROTO_S ( ( c_class * ) ) ;
87
#endif
88
 
89
#define DEBUG_file	stdout
90
#define DEBUG_text( A )	fputs_v ( ( A ), DEBUG_file )
91
#define DEBUG_mark	fprintf_v ( DEBUG_file, "%s: %d\n", __FILE__, __LINE__ )
92
 
93
extern int print_exp_aux PROTO_S ( ( EXP, int, BUFFER *, int ) ) ;
94
extern int print_offset_aux PROTO_S ( ( OFFSET, BUFFER *, int ) ) ;
95
extern void debug_option PROTO_S ( ( char * ) ) ;
96
extern int debugging ;
97
 
98
 
99
#endif
100
#endif