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
/*
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
#ifndef TABLE_INCLUDED
32
#define TABLE_INCLUDED
33
 
34
 
35
/*
36
    TYPE REPRESENTING A PORTABILITY TABLE ENTRY
37
 
38
    The portability table consists of an array of type PORT_ENTRY.  The
39
    PORT_* macros identify the various elements of this array.
40
*/
41
 
42
typedef struct {
43
    CONST char *name ;
44
    int set ;
45
    unsigned value ;
46
    BASE_TYPE type ;
47
} PORT_ENTRY ;
48
 
49
#define PORT_char_bits			0
50
#define PORT_short_bits			1
51
#define PORT_int_bits			2
52
#define PORT_long_bits			3
53
#define PORT_llong_bits			4
54
#define PORT_max_bits			5
55
#define PORT_signed_range		6
56
#define PORT_char_type			7
57
#define PORT_exact_range		8
58
#define PORT_ptr_int			9
59
#define PORT_ptr_fn			10
60
#define PORT_non_proto			11
61
#define PORT_multibyte			12
62
#define PORT_size			13
63
 
64
 
65
/*
66
    PORTABILITY TABLE DECLARATIONS
67
 
68
    The routines in this module are concerned with reading the portability
69
    table.
70
*/
71
 
72
extern void read_table PROTO_S ( ( string ) ) ;
73
extern PORT_ENTRY port_entry [] ;
74
 
75
 
76
#endif