| 1143 | } |
| 1144 | |
| 1145 | static p_ply_element ply_grow_element(p_ply ply) { |
| 1146 | p_ply_element element = NULL; |
| 1147 | assert(ply); |
| 1148 | assert(ply->element || ply->nelements == 0); |
| 1149 | assert(!ply->element || ply->nelements > 0); |
| 1150 | element = (p_ply_element) ply_grow_array(ply, (void **) &ply->element, |
| 1151 | &ply->nelements, sizeof(t_ply_element)); |
| 1152 | if (!element) return NULL; |
| 1153 | ply_element_init(element); |
| 1154 | return element; |
| 1155 | } |
| 1156 | |
| 1157 | static p_ply_property ply_grow_property(p_ply ply, p_ply_element element) { |
| 1158 | p_ply_property property = NULL; |
no test coverage detected