aboutsummaryrefslogtreecommitdiff
path: root/src/symbol_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbol_table.h')
-rw-r--r--src/symbol_table.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/symbol_table.h b/src/symbol_table.h
index 23cd618..3f6977b 100644
--- a/src/symbol_table.h
+++ b/src/symbol_table.h
@@ -23,7 +23,8 @@ typedef enum scope {
23typedef enum type { 23typedef enum type {
24 INT, 24 INT,
25 CHAR, 25 CHAR,
26 VOID_T 26 VOID_T,
27 TAB
27} Type; 28} Type;
28 29
29typedef struct { 30typedef struct {
@@ -67,7 +68,8 @@ int loc_get_addr(const char name[]);
67void loc_display_table(); 68void loc_display_table();
68void loc_clean_table(); 69void loc_clean_table();
69 70
70void check_expected_type(int type_to_check, int type_expected); 71void check_expected_type(Type type_to_check, Type type_expected);
72void check_expected_types(Type type_to_check, Type type_expected1, Type type_expected2);
71bool is_read_only(const char name[], Scope scope); 73bool is_read_only(const char name[], Scope scope);
72 74
73#endif 75#endif