4 * Symbol scoping is pretty simple.
6 * Copyright (C) 2003 Transmeta Corp.
9 * Licensed under the Open Software License version 1.1
15 struct token
*token
; /* Scope start information */
16 struct symbol_list
*symbols
; /* List of symbols in this scope */
26 static inline int toplevel(struct scope
*scope
)
28 return scope
== file_scope
|| scope
== global_scope
;
31 extern void start_file_scope(void);
32 extern void end_file_scope(void);
33 extern void new_file_scope(void);
35 extern void start_symbol_scope(void);
36 extern void end_symbol_scope(void);
38 extern void start_function_scope(void);
39 extern void end_function_scope(void);
41 extern void bind_scope(struct symbol
*, struct scope
*);
43 extern int is_outer_scope(struct scope
*);