Lines Matching refs:info
55 #define LOG_MARK(info) __FILE__, __LINE__, (info)->module_index
58 const ap_expr_t *info,
166 const ap_expr_t *info = node->node_arg1;
168 result = ap_expr_eval_string_func(ctx, info, args);
211 const ap_expr_t *info,
214 const void *data = info->node_arg2;
216 AP_DEBUG_ASSERT(info->node_op == op_StringFuncInfo);
217 AP_DEBUG_ASSERT(info->node_arg1 != NULL);
221 ap_expr_string_list_func_t *func = (ap_expr_string_list_func_t *)info->node_arg1;
234 ap_expr_string_func_t *func = (ap_expr_string_func_t *)info->node_arg1;
293 const ap_expr_t *info = e2->node_arg1;
295 ap_expr_list_func_t *func = (ap_expr_list_func_t *)info->node_arg1;
299 AP_DEBUG_ASSERT(info->node_op == op_ListFuncInfo);
300 haystack = (*func)(ctx, info->node_arg2, ap_expr_eval_word(ctx, arg));
398 ap_expr_info_t *info, const char *expr,
412 ctx.flags = info->flags;
441 info->root_node = ctx.expr;
453 ap_expr_info_t *info = apr_pcalloc(cmd->pool, sizeof(ap_expr_info_t));
454 info->filename = cmd->directive->filename;
455 info->line_number = cmd->directive->line_num;
456 info->flags = flags;
457 info->module_index = module_index;
458 *err = ap_expr_parse(cmd->pool, cmd->temp_pool, info, expr, lookup_fn);
463 return info;
480 ap_expr_t *info = apr_palloc(ctx->pool, sizeof(ap_expr_t));
487 parms.func = &info->node_arg1;
488 parms.data = &info->node_arg2;
511 return info;
517 ap_expr_t *info = ap_expr_info_make(AP_EXPR_FUNC_STRING, name, ctx, arg);
518 if (!info)
521 info->node_op = op_StringFuncInfo;
522 return ap_expr_make(op_StringFuncCall, info, arg, ctx);
528 ap_expr_t *info = ap_expr_info_make(AP_EXPR_FUNC_LIST, name, ctx, arg);
529 if (!info)
532 info->node_op = op_ListFuncInfo;
533 return ap_expr_make(op_ListFuncCall, info, arg, ctx);
539 ap_expr_t *info = ap_expr_info_make(AP_EXPR_FUNC_OP_UNARY, name, ctx, arg);
540 if (!info)
543 info->node_op = op_UnaryOpInfo;
544 return ap_expr_make(op_UnaryOpCall, info, arg, ctx);
551 ap_expr_t *info = ap_expr_info_make(AP_EXPR_FUNC_OP_BINARY, name, ctx,
553 if (!info)
556 info->node_op = op_BinaryOpInfo;
558 return ap_expr_make(op_BinaryOpCall, info, args, ctx);
742 static int ap_expr_eval_unary_op(ap_expr_eval_ctx_t *ctx, const ap_expr_t *info,
745 ap_expr_op_unary_t *op_func = (ap_expr_op_unary_t *)info->node_arg1;
746 const void *data = info->node_arg2;
748 AP_DEBUG_ASSERT(info->node_op == op_UnaryOpInfo);
755 const ap_expr_t *info,
758 ap_expr_op_binary_t *op_func = (ap_expr_op_binary_t *)info->node_arg1;
759 const void *data = info->node_arg2;
763 AP_DEBUG_ASSERT(info->node_op == op_BinaryOpInfo);
834 if (ctx->info->flags & AP_EXPR_FLAG_SSL_EXPR_COMPAT)
851 AP_DECLARE(int) ap_expr_exec(request_rec *r, const ap_expr_info_t *info,
854 return ap_expr_exec_re(r, info, 0, NULL, NULL, err);
867 AP_DEBUG_ASSERT(ctx->info != NULL);
875 if (ctx->info->flags & AP_EXPR_FLAG_STRING_RESULT) {
876 *ctx->result_string = ap_expr_eval_word(ctx, ctx->info->root_node);
878 ap_log_rerror(LOG_MARK(ctx->info), APLOG_ERR, 0, ctx->r,
880 ctx->info->filename, ctx->info->line_number, *ctx->err);
883 ap_log_rerror(LOG_MARK(ctx->info), APLOG_TRACE4, 0, ctx->r,
885 ctx->info->filename, ctx->info->line_number,
891 rc = ap_expr_eval(ctx, ctx->info->root_node);
893 ap_log_rerror(LOG_MARK(ctx->info), APLOG_ERR, 0, ctx->r,
895 ctx->info->filename, ctx->info->line_number, *ctx->err);
899 ap_log_rerror(LOG_MARK(ctx->info), APLOG_TRACE4, 0, ctx->r,
901 ctx->info->filename, ctx->info->line_number, rc);
911 AP_DECLARE(int) ap_expr_exec_re(request_rec *r, const ap_expr_info_t *info,
916 int dont_vary = (info->flags & AP_EXPR_FLAG_DONT_VARY);
920 AP_DEBUG_ASSERT((info->flags & AP_EXPR_FLAG_STRING_RESULT) == 0);
927 ctx.info = info;
944 const ap_expr_info_t *info,
956 AP_DEBUG_ASSERT(info->flags & AP_EXPR_FLAG_STRING_RESULT);
958 if (info->root_node->node_op == op_String) {
961 return (const char *)info->root_node->node_arg1;
967 dont_vary = (info->flags & AP_EXPR_FLAG_DONT_VARY);
974 ctx.info = info;
1000 const ap_expr_info_t *info,
1003 return ap_expr_str_exec_re(r, info, 0, NULL, NULL, err);
1265 ap_log_rerror(LOG_MARK(ctx->info), APLOG_DEBUG, 0, ctx->r, APLOGNO(00538)
1268 ctx->info->filename, ctx->info->line_number);
1338 ap_log_rerror(LOG_MARK(ctx->info), APLOG_TRACE5, 0, r,
1340 arg, ctx->info->filename, ctx->info->line_number,
1359 ap_log_rerror(LOG_MARK(ctx->info), APLOG_TRACE5, 0, r,
1361 arg, ctx->info->filename, ctx->info->line_number,