| 1428 | } |
| 1429 | |
| 1430 | ATTRIBUTE_PURE |
| 1431 | static bool |
| 1432 | include_field (uintmax_t field) |
| 1433 | { |
| 1434 | struct field_range_pair *p = frp; |
| 1435 | if (!p) |
| 1436 | return field == 1; |
| 1437 | |
| 1438 | while (p->lo != UINTMAX_MAX) |
| 1439 | { |
| 1440 | if (p->lo <= field && p->hi >= field) |
| 1441 | return true; |
| 1442 | ++p; |
| 1443 | } |
| 1444 | return false; |
| 1445 | } |
| 1446 | |
| 1447 | /* Convert and output the given field. If it is not included in the set |
| 1448 | of fields to process just output the original */ |