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 TOKDEF_INCLUDED
32
#define TOKDEF_INCLUDED
33
 
34
 
35
/*
36
    TDF TOKEN DECLARATIONS
37
 
38
    The routines in this module are concerned with the definition of TDF
39
    tokens.
40
*/
41
 
42
extern int define_exp_token PROTO_S ( ( IDENTIFIER, EXP, int ) ) ;
43
extern int define_func_token PROTO_S ( ( IDENTIFIER, IDENTIFIER ) ) ;
44
extern int define_mem_token PROTO_S ( ( IDENTIFIER, OFFSET, TYPE, int ) ) ;
45
extern int define_nat_token PROTO_S ( ( IDENTIFIER, NAT ) ) ;
46
extern int define_templ_token PROTO_S ( ( IDENTIFIER, IDENTIFIER ) ) ;
47
extern int define_type_token PROTO_S ( ( IDENTIFIER, TYPE, int ) ) ;
48
extern int define_token_macro PROTO_S ( ( IDENTIFIER, IDENTIFIER ) ) ;
49
extern int define_mem_macro PROTO_S ( ( IDENTIFIER, TYPE ) ) ;
50
extern int defining_token PROTO_S ( ( IDENTIFIER ) ) ;
51
 
52
extern LIST ( TOKEN ) make_token_args PROTO_S ( ( IDENTIFIER, LIST ( IDENTIFIER ), ERROR * ) ) ;
53
extern int save_token_args PROTO_S ( ( LIST ( IDENTIFIER ), LIST ( TOKEN ) ) ) ;
54
extern void restore_token_args PROTO_S ( ( LIST ( IDENTIFIER ), int ) ) ;
55
extern int merge_token_args PROTO_S ( ( LIST ( IDENTIFIER ), int, int ) ) ;
56
extern void assign_token PROTO_S ( ( IDENTIFIER, TOKEN ) ) ;
57
extern int is_bound_tok PROTO_S ( ( TOKEN, int ) ) ;
58
extern TOKEN find_tokdef PROTO_S ( ( IDENTIFIER ) ) ;
59
extern void init_token_args PROTO_S ( ( void ) ) ;
60
 
61
extern PPTOKEN *skip_token_args PROTO_S ( ( IDENTIFIER ) ) ;
62
extern EXP parse_exp_token PROTO_S ( ( IDENTIFIER, PPTOKEN * ) ) ;
63
extern OFFSET parse_mem_token PROTO_S ( ( IDENTIFIER, PPTOKEN * ) ) ;
64
extern TYPE parse_type_token PROTO_S ( ( IDENTIFIER, PPTOKEN * ) ) ;
65
extern int unify_id PROTO_S ( ( IDENTIFIER, IDENTIFIER, int ) ) ;
66
 
67
extern IDENTIFIER unify_id_pending ;
68
extern int in_proc_token ;
69
extern int force_template ;
70
extern int force_tokdef ;
71
extern int expand_tokdef ;
72
extern TYPE redef_type ;
73
 
74
 
75
#endif