Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/algol60/src/tools/tnc/table.h – Rev 2

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
#ifndef TABLE_INCLUDED
32
#define TABLE_INCLUDED
33
 
34
 
35
/*
36
    TABLES OF CONSTRUCTS
37
*/
38
 
39
extern construct **cons_table ;
40
extern construct **var_table ;
41
extern construct **cons_hash_tables ;
42
 
43
 
44
/*
45
    TABLES OF SORT INFORMATION
46
*/
47
 
48
typedef node *( *decode_func ) PROTO_S ( ( void ) ) ;
49
typedef node *( *read_func ) PROTO_S ( ( long ) ) ;
50
extern long *sort_count ;
51
extern char *sort_letters ;
52
extern int *sort_encoding ;
53
extern int *sort_extension ;
54
extern long *sort_tokens ;
55
extern long *sort_conds ;
56
extern long *sort_removed ;
57
extern decode_func *sort_decode ;
58
extern read_func *sort_read ;
59
 
60
 
61
/*
62
    SPECIAL CONSTRUCTS
63
*/
64
 
65
extern construct bytestream_cons ;
66
extern construct false_cons ;
67
extern construct optional_cons ;
68
extern construct string_cons ;
69
extern construct token_cons ;
70
extern construct true_cons ;
71
extern construct unknown_cons ;
72
extern construct exp_shape ;
73
extern construct shape_of ;
74
 
75
 
76
/*
77
    OUTPUT FLAGS
78
*/
79
 
80
extern boolean show_tokdecs ;
81
extern boolean show_tokdefs ;
82
extern boolean show_aldecs ;
83
extern boolean show_aldefs ;
84
extern boolean show_tagdecs ;
85
extern boolean show_tagdefs ;
86
 
87
 
88
/*
89
    TABLE MANIPULATION ROUTINES
90
*/
91
 
92
extern void init_tables PROTO_S ( ( void ) ) ;
93
extern construct *add_to_cons_hash PROTO_S ( ( construct *, sortname ) ) ;
94
extern construct *search_cons_hash PROTO_S ( ( char *, sortname ) ) ;
95
extern construct *add_to_var_hash PROTO_S ( ( construct *, sortname ) ) ;
96
extern construct *search_var_hash PROTO_S ( ( char *, sortname ) ) ;
97
extern void remove_var_hash PROTO_S ( ( char *, sortname ) ) ;
98
extern construct *removals ;
99
 
100
 
101
/*
102
    TABLE UTILITY ROUTINES
103
*/
104
 
105
extern boolean order_names ;
106
typedef void ( *apply_func ) PROTO_S ( ( construct * ) ) ;
107
extern char *sort_name PROTO_S ( ( sortname ) ) ;
108
extern void sort_table PROTO_S ( ( construct **, sortname ) ) ;
109
extern void sort_all PROTO_S ( ( void ) ) ;
110
extern void apply_to_all PROTO_S ( ( apply_func, sortname ) ) ;
111
 
112
 
113
/*
114
    AUXILLIARY TABLE ROUTINES
115
*/
116
 
117
extern void new_sort PROTO_S ( ( sortname, int ) ) ;
118
extern void new_cons PROTO_S ( ( char *, sortname, int, char * ) ) ;
119
 
120
 
121
/*
122
    MACRO FOR ACCESSING CONSTRUCTS
123
*/
124
 
125
#define cons_no( X, Y )		( cons_table [ ( X ) ] + ( Y ) )
126
 
127
 
128
#endif