equal
deleted
inserted
replaced
112 res &= get_datatype_info_c::is_type_equal(symbol_vect[i-1]->datatype, symbol_vect[i]->datatype); |
112 res &= get_datatype_info_c::is_type_equal(symbol_vect[i-1]->datatype, symbol_vect[i]->datatype); |
113 return res; |
113 return res; |
114 } |
114 } |
115 |
115 |
116 |
116 |
117 |
|
118 |
|
119 /* a helper function... */ |
|
120 symbol_c *print_datatypes_error_c::base_type(symbol_c *symbol) { |
|
121 /* NOTE: symbol == NULL is valid. It will occur when, for e.g., an undefined/undeclared symbolic_variable is used |
|
122 * in the code. |
|
123 */ |
|
124 if (symbol == NULL) return NULL; |
|
125 return (symbol_c *)symbol->accept(search_base_type); |
|
126 } |
|
127 |
117 |
128 |
118 |
129 |
119 |
130 /* |
120 /* |
131 typedef struct { |
121 typedef struct { |