MCPcopy Create free account
hub / github.com/apache/httpd / make_array_config

Function make_array_config

modules/core/mod_macro.c:657–677  ·  view source on GitHub ↗

create an array config stream insertion "object". could be exported. */

Source from the content-addressed store, hash-verified

655 could be exported.
656*/
657static 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 */

Callers 1

use_macroFunction · 0.85

Calls 1

ap_pcfg_open_customFunction · 0.85

Tested by

no test coverage detected