True if node is the first element of an array, not the descriptor. *@pre pn_is_in_array(data, parent, node) */
| 233 | *@pre pn_is_in_array(data, parent, node) |
| 234 | */ |
| 235 | static bool pn_is_first_in_array(pn_data_t *data, pni_node_t *parent, pni_node_t *node) { |
| 236 | if (!node->prev) return !parent->described; /* First node */ |
| 237 | return parent->described && (!pn_data_node(data, node->prev)->prev); |
| 238 | } |
| 239 | |
| 240 | /** True if node is in a described list - not the descriptor. |
| 241 | * - In this case we can omit trailing nulls |
no test coverage detected