| 319 | } |
| 320 | |
| 321 | static void xml_meta_attr(ACL_XML2_NODE *node) |
| 322 | { |
| 323 | ACL_XML2_ATTR *attr; |
| 324 | char *ptr; |
| 325 | int ch; |
| 326 | |
| 327 | if (node->text == node->xml->dummy || *node->text == 0) |
| 328 | return; |
| 329 | |
| 330 | ptr = node->text; |
| 331 | SKIP_SPACE(ptr); |
| 332 | |
| 333 | if (*ptr == 0) |
| 334 | return; |
| 335 | |
| 336 | while ((ch = *ptr) != 0) { |
| 337 | attr = acl_xml2_attr_alloc(node); |
| 338 | ptr = xml_meta_attr_name(attr, ptr); |
| 339 | if (*ptr == 0) |
| 340 | break; |
| 341 | ptr = xml_meta_attr_value(attr, ptr); |
| 342 | if (*ptr == 0) |
| 343 | break; |
| 344 | } |
| 345 | |
| 346 | node->text = node->xml->dummy; |
| 347 | node->text_size = 0; |
| 348 | } |
| 349 | |
| 350 | static const char *xml_parse_meta_text(ACL_XML2 *xml, const char *data) |
| 351 | { |
no test coverage detected
searching dependent graphs…