-
-
Notifications
You must be signed in to change notification settings - Fork 288
/
parser_local_proto.h
66 lines (50 loc) · 1.43 KB
/
parser_local_proto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef __PARSER_LOCAL_PROTO_H__
#define __PARSER_LOCAL_PROTO_H__
#include <stdio.h>
#include <grass/gis.h>
struct Item
{
struct Option *option;
struct Flag *flag;
struct Item *next_item;
};
struct state {
int no_interactive;
int n_opts;
int n_flags;
int n_keys;
int n_keys_alloc;
int overwrite;
int quiet;
int has_required;
int suppress_required;
int suppress_overwrite;
struct GModule module_info; /* general information on the corresponding module */
const char *pgm_name;
const char *pgm_path;
struct Flag first_flag; /* First flag in a linked list */
struct Flag *current_flag; /* Pointer for traversing list */
struct Option first_option;
struct Option *current_option;
struct Item first_item;
struct Item *current_item;
int n_items;
char **error;
int n_errors;
struct Key_Value *renamed_options;
};
extern struct state *st;
/* functions which are used by several parser functions in different files */
void G__usage_xml(void);
void G__usage_html(void);
void G__usage_rest(void);
void G__usage_text(void);
void G__script(void);
void G__wps_print_process_description(void);
int G__uses_new_gisprompt(void);
void G__print_keywords(FILE *, void (*)(FILE *, const char *));
void G__check_option_rules(void);
void G__describe_option_rules(void);
int G__has_required_rule(void);
void G__describe_option_rules_xml(FILE *);
#endif