equal
deleted
inserted
replaced
222 /* enumerated_value_list ',' enumerated_value */ |
222 /* enumerated_value_list ',' enumerated_value */ |
223 void *type_initial_value_c::visit(enumerated_value_list_c *symbol) { |
223 void *type_initial_value_c::visit(enumerated_value_list_c *symbol) { |
224 /* stage1_2 never creates an enumerated_value_list_c with no entries. If this occurs, then something must have changed! */ |
224 /* stage1_2 never creates an enumerated_value_list_c with no entries. If this occurs, then something must have changed! */ |
225 if (symbol->n <= 0) ERROR; |
225 if (symbol->n <= 0) ERROR; |
226 /* if no initial value explicitly given, then use the lowest value of the subrange */ |
226 /* if no initial value explicitly given, then use the lowest value of the subrange */ |
227 return (void *)symbol->elements[0]; |
227 return (void *)symbol->get_element(0); |
228 } |
228 } |
229 /* enumerated_type_name '#' identifier */ |
229 /* enumerated_type_name '#' identifier */ |
230 // SYM_REF2(enumerated_value_c, type, value) |
230 // SYM_REF2(enumerated_value_c, type, value) |
231 void *type_initial_value_c::visit(enumerated_value_c *symbol) {ERROR; return NULL;} |
231 void *type_initial_value_c::visit(enumerated_value_c *symbol) {ERROR; return NULL;} |
232 /* identifier ':' array_spec_init */ |
232 /* identifier ':' array_spec_init */ |