blob: feb2e8bd2526c986daa1e52b37682746343b9131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
struct scope {
struct hashtable *tags;
struct hashtable *decls;
struct value *breaklabel;
struct value *continuelabel;
struct switchcases *switchcases;
struct scope *parent;
};
void scopeinit(void);
struct scope *mkscope(struct scope *);
struct scope *delscope(struct scope *);
struct decl;
void scopeputdecl(struct scope *, const char *, struct decl *);
struct decl *scopegetdecl(struct scope *, const char *, _Bool);
struct type;
void scopeputtag(struct scope *, const char *, struct type *);
struct type *scopegettag(struct scope *, const char *, _Bool);
extern struct scope filescope;
|