diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-20 10:54:14 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:31 -0700 |
| commit | 0474cdb18bbe72035ca493487776dbb5a8b325b5 (patch) | |
| tree | 7fe9d5badef603bb00f56a97ce2d031b16824284 /scope.h | |
| parent | 15f971e49f7bf7b8b9576a15bf2b3982f4a59ac8 (diff) | |
| download | sparse-dev-0474cdb18bbe72035ca493487776dbb5a8b325b5.tar.gz | |
Add symbol scoping for proper parsing.
Diffstat (limited to 'scope.h')
| -rw-r--r-- | scope.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scope.h b/scope.h new file mode 100644 index 00000000..f564018f --- /dev/null +++ b/scope.h @@ -0,0 +1,14 @@ +#ifndef SCOPE_H +#define SCOPE_H + +struct scope { + struct token *token; /* Scope start information */ + struct symbol_list *symbols; /* List of symbols in this scope */ + struct scope *next; +}; + +extern void start_symbol_scope(void); +extern void end_symbol_scope(void); +extern void bind_scope(struct symbol *); + +#endif |
