blob: 1eb3cfa820bf8929813d1dcefb1a6c4bec26af2e (
plain)
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
|
#ifndef _CONFIG_STACK_H
#define _CONFIG_STACK_H
int yyparse (void);
extern FILE *yyin;
struct value {
char *id;
char *val;
struct value *next;
};
struct node {
char *id;
char *val;
struct node *nodes;
struct value *values;
struct node *next;
};
struct parser_context {
struct value *val_list;
struct node *node_list;
struct parser_context *next;
};
extern struct value *val_list;
extern struct node *node_list;
extern struct parser_context *context_stack;
int _sc_value_add(char *id, char *val, struct value **list);
int _sc_node_add(char *id, char *val, struct value *vallist,
struct node *nodelist, struct node **list);
#endif
|