create an array config stream insertion "object". could be exported. */
| 655 | could be exported. |
| 656 | */ |
| 657 | static ap_configfile_t *make_array_config(apr_pool_t * pool, |
| 658 | apr_array_header_t * contents, |
| 659 | const char *where, |
| 660 | ap_configfile_t * cfg, |
| 661 | ap_configfile_t ** upper) |
| 662 | { |
| 663 | array_contents_t *ls = |
| 664 | (array_contents_t *) apr_palloc(pool, sizeof(array_contents_t)); |
| 665 | ap_assert(ls!=NULL); |
| 666 | |
| 667 | ls->index = 0; |
| 668 | ls->char_index = 0; |
| 669 | ls->contents = contents; |
| 670 | ls->length = ls->contents->nelts < 1 ? |
| 671 | 0 : strlen(((char **) ls->contents->elts)[0]); |
| 672 | ls->next = cfg; |
| 673 | ls->upper = upper; |
| 674 | |
| 675 | return ap_pcfg_open_custom(pool, where, (void *) ls, |
| 676 | array_getch, array_getstr, array_close); |
| 677 | } |
| 678 | |
| 679 | |
| 680 | /********************************************************** KEYWORD HANDLING */ |
no test coverage detected