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 NODE_INCLUDED
|
|
|
32 |
#define NODE_INCLUDED
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/*
|
|
|
36 |
PROCEDURES FOR MANIPULATING NODES
|
|
|
37 |
*/
|
|
|
38 |
|
|
|
39 |
extern boolean dont_check ;
|
|
|
40 |
extern node *new_node PROTO_S ( ( void ) ) ;
|
|
|
41 |
extern void free_node PROTO_S ( ( node * ) ) ;
|
|
|
42 |
extern node *completion PROTO_S ( ( node * ) ) ;
|
|
|
43 |
extern boolean eq_node PROTO_S ( ( node *, node * ) ) ;
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
/*
|
|
|
47 |
PROCEDURES FOR MANIPULATING CONSTRUCTS
|
|
|
48 |
*/
|
|
|
49 |
|
|
|
50 |
extern construct *new_construct PROTO_S ( ( void ) ) ;
|
|
|
51 |
extern construct *make_construct PROTO_S ( ( sortname ) ) ;
|
|
|
52 |
extern void copy_construct PROTO_S ( ( construct * ) ) ;
|
|
|
53 |
extern void free_construct PROTO_S ( ( construct ** ) ) ;
|
|
|
54 |
extern void set_token_sort PROTO_S ( ( construct *, sortname, char *, node * ) ) ;
|
|
|
55 |
extern void set_tag_type PROTO_S ( ( construct *, int ) ) ;
|
|
|
56 |
extern boolean is_local_name PROTO_S ( ( char * ) ) ;
|
|
|
57 |
extern char *skip_text PROTO_S ( ( char * ) ) ;
|
|
|
58 |
extern char *local_prefix ;
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
/*
|
|
|
62 |
MACRO FOR RENUMBERING TOKEN CONSTRUCTS
|
|
|
63 |
*/
|
|
|
64 |
|
|
|
65 |
#define adjust_token( X )\
|
|
|
66 |
if ( ( X )->encoding == -1 ) {\
|
|
|
67 |
( X )->encoding = ( sort_count [ SORT_token ] )++ ;\
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
#endif
|