source
config.c
line
1383 - 1414
function
1383 static void process_command_config(server_rec *s, apr_array_header_t *arr,
1384 ap_directive_t **conftree, apr_pool_t *p,
1385 apr_pool_t *ptemp)
1386 {
1387 const char *errmsg;
1388 cmd_parms parms;
1389 arr_elts_param_t arr_parms;
1390
1391 arr_parms.curr_idx = 0;
1392 arr_parms.array = arr;
1393
1394 parms = default_parms;
1395 parms.pool = p;
1396 parms.temp_pool = ptemp;
1397 parms.server = s;
1398 parms.override = (RSRC_CONF | OR_ALL) & ~(OR_AUTHCFG | OR_LIMIT);
1399
1400 parms.config_file = ap_pcfg_open_custom(p, "-c/-C directives",
1401 &arr_parms, NULL,
1402 arr_elts_getstr, arr_elts_close);
1403
1404 errmsg = ap_build_config(&parms, p, ptemp, conftree);
1405 if (errmsg) {
1406 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
1407 "Syntax error in -C/-c directive:");
1408 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
1409 "%s", errmsg);
1410 exit(1);
1411 }
1412
1413 ap_cfg_closefile(parms.config_file);
1414 }
最終更新:2009年02月08日 16:33