[ ... */
| 321 | |
| 322 | /* [ ... */ |
| 323 | static bool tok_take_array(struct parse_state *ps, struct cdump_type **type) |
| 324 | { |
| 325 | /* This will be some arbitrary expression! */ |
| 326 | struct cdump_type *arr = get_type(ps->defs, CDUMP_ARRAY, NULL); |
| 327 | |
| 328 | arr->u.arr.size = tok_take_expr_str(arr, ps, "]"); |
| 329 | if (!arr->u.arr.size) { |
| 330 | complain(ps, "Could not find closing array size ]"); |
| 331 | return false; |
| 332 | } |
| 333 | |
| 334 | arr->u.arr.type = *type; |
| 335 | *type = arr; |
| 336 | |
| 337 | return true; |
| 338 | } |
| 339 | |
| 340 | static struct cdump_type *ptr_of(struct parse_state *ps, |
| 341 | const struct cdump_type *ptr_to) |
no test coverage detected