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

Function get_arguments

modules/core/mod_macro.c:91–104  ·  view source on GitHub ↗

return configuration-parsed arguments from line as an array. the line is expected not to contain any '\n'? */

Source from the content-addressed store, hash-verified

89 the line is expected not to contain any '\n'?
90*/
91static apr_array_header_t *get_arguments(apr_pool_t * pool, const char *line)
92{
93 apr_array_header_t *args = apr_array_make(pool, 1, sizeof(char *));
94
95 trim(line);
96 while (*line) {
97 char *arg = ap_getword_conf(pool, &line);
98 char **new = apr_array_push(args);
99 *new = arg;
100 trim(line);
101 }
102
103 return args;
104}
105
106/*
107 warn if anything non blank appears, but ignore comments...

Callers 2

macro_sectionFunction · 0.85
use_macroFunction · 0.85

Calls 1

ap_getword_confFunction · 0.85

Tested by

no test coverage detected