equal
deleted
inserted
replaced
42 |
42 |
43 |
43 |
44 #include "../util/symtable.hh" |
44 #include "../util/symtable.hh" |
45 #include "search_constant_type.hh" |
45 #include "search_constant_type.hh" |
46 #include "absyntax_utils.hh" |
46 #include "absyntax_utils.hh" |
|
47 #include "../main.hh" // required for ERROR() and ERROR_MSG() macros. |
47 |
48 |
48 |
49 |
49 #define ERROR error_exit(__FILE__,__LINE__) |
|
50 /* function defined in main.cc */ |
|
51 extern void error_exit(const char *file_name, int line_no); |
|
52 |
50 |
53 symbol_c *search_constant_type_c::get_type(symbol_c *constant) { |
51 symbol_c *search_constant_type_c::get_type(symbol_c *constant) { |
54 return (symbol_c *)constant->accept(*this); |
52 return (symbol_c *)constant->accept(*this); |
55 } |
53 } |
56 |
54 |