apr_array_header_t *patterns;
apr_size_t max_line_length;
int max_line_length_set;
- int inherit_before_set,
- inherit_before;
+ int inherit_before;
} subst_dir_conf;
typedef struct {
dcfg->patterns = apr_array_make(p, 10, sizeof(subst_pattern_t));
dcfg->max_line_length = AP_SUBST_MAX_LINE_LENGTH;
+ dcfg->inherit_before = -1;
return dcfg;
}
subst_dir_conf *base = (subst_dir_conf *) basev;
subst_dir_conf *over = (subst_dir_conf *) overv;
- if (!over->inherit_before_set) {
- over->inherit_before = base->inherit_before;
+ if (over->inherit_before < 0) {
+ over->inherit_before = (base->inherit_before > 0);
}
if (over->inherit_before) {
a->patterns = apr_array_append(p, base->patterns,
subst_dir_conf *dcfg = (subst_dir_conf *)cfg;
dcfg->inherit_before = (flag != 0);
- dcfg->inherit_before_set = 1;
return NULL;
}