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 OPTIONS_INCLUDED
32
#define OPTIONS_INCLUDED
33
 
34
 
35
/*
36
    TYPE REPRESENTING AN OPTION
37
 
38
    An option consists of an input pattern, in, an output command, out,
39
    and some explanitory text, explain.
40
*/
41
 
42
typedef struct {
43
    char *in ;
44
    char *out ;
45
    char *explain ;
46
} optmap ;
47
 
48
 
49
/*
50
    TYPE REPRESENTING AN OPTION ACTION
51
 
52
    The output commands of an optmap are stored as an args_out, which is
53
    a simple array of strings.
54
*/
55
 
56
#define max_var		100
57
 
58
typedef struct {
59
    int argc ;
60
    char *argv [ max_var ] ;
61
} args_out ;
62
 
63
 
64
/*
65
    TABLES OF OPTIONS
66
 
67
    These tables give the option mappings for the command-line options
68
    and the environment options.
69
*/
70
 
71
extern optmap main_optmap [] ;
72
extern optmap environ_optmap [] ;
73
 
74
 
75
/*
76
    PROCEDURE DECLARATIONS
77
 
78
    These routines are concerned with processing command-line options
79
    and input files.
80
*/
81
 
82
extern void process_options PROTO_S ( ( list *, optmap * ) ) ;
83
 
84
 
85
/*
86
    THE LIST OF ALL INPUT FILES
87
 
88
    All the input files are formed into this list.
89
*/
90
 
91
extern filename *input_files ;
92
 
93
 
94
#endif