示例#1
0
文件: pcre.c 项目: niubl/ironbee
    else {
        ib_cfg_log_error(cp, "Unhandled directive \"%s\"", name);
        return IB_EINVAL;
    }
    rc = ib_context_set_num(ctx, pname, value);
    if (rc != IB_OK) {
        ib_cfg_log_error(cp, "Failed to set \"%s\" to %ld for \"%s\": %s",
                         pname, (long int)value, name, ib_status_to_string(rc));
    }
    return IB_OK;
}

static IB_DIRMAP_INIT_STRUCTURE(directive_map) = {
    IB_DIRMAP_INIT_ONOFF(
        "PcreStudy",
        handle_directive_onoff,
        NULL
    ),
    IB_DIRMAP_INIT_ONOFF(
        "PcreUseJit",
        handle_directive_onoff,
        NULL
    ),
    IB_DIRMAP_INIT_PARAM1(
        "PcreMatchLimit",
        handle_directive_param,
        NULL
    ),
    IB_DIRMAP_INIT_PARAM1(
        "PcreMatchLimitRecursion",
        handle_directive_param,