| 514 | */ |
| 515 | |
| 516 | static apr_array_header_t *do_header_line(apr_pool_t *p, |
| 517 | const char *accept_line) |
| 518 | { |
| 519 | apr_array_header_t *accept_recs; |
| 520 | |
| 521 | if (!accept_line) { |
| 522 | return NULL; |
| 523 | } |
| 524 | |
| 525 | accept_recs = apr_array_make(p, 40, sizeof(accept_rec)); |
| 526 | |
| 527 | while (*accept_line) { |
| 528 | accept_rec *new = (accept_rec *) apr_array_push(accept_recs); |
| 529 | accept_line = get_entry(p, new, accept_line); |
| 530 | } |
| 531 | |
| 532 | return accept_recs; |
| 533 | } |
| 534 | |
| 535 | /* Given the text of the Content-Languages: line from the var map file, |
| 536 | * return an array containing the languages of this variant |
no test coverage detected