*/
MEM(stack = talloc_zero_pooled_object(ctx, unlang_stack_t, UNLANG_STACK_MAX, 128)); /* 128 bytes per state */
stack->frame[0].result_p = &stack->frame[0].section_result;
- stack->frame[0].scratch_result.rcode = RLM_MODULE_NOT_SET;
- stack->frame[0].scratch_result.priority = MOD_ACTION_NOT_SET;
- stack->frame[0].section_result.rcode = RLM_MODULE_NOT_SET;
- stack->frame[0].section_result.priority = MOD_ACTION_NOT_SET;
+ stack->frame[0].scratch_result = UNLANG_RESULT_NOT_SET;
+ stack->frame[0].section_result = UNLANG_RESULT_NOT_SET;
stack->frame[0].instruction = &unlang_instruction; /* The top frame has no instruction, so we use a dummy one */
return stack;
/*
* Reset for each instruction
*/
- frame->scratch_result.rcode = RLM_MODULE_NOT_SET;
- frame->scratch_result.priority = MOD_ACTION_NOT_SET;
+ frame->scratch_result = UNLANG_RESULT_NOT_SET;
frame->process = op->interpret;
frame->signal = op->signal;
*/
int unlang_xlat_eval(TALLOC_CTX *ctx, fr_value_box_list_t *out, request_t *request, xlat_exp_head_t const *xlat)
{
- unlang_result_t result = { .rcode = RLM_MODULE_NOT_SET, .priority = MOD_ACTION_NOT_SET };
+ unlang_result_t result = UNLANG_RESULT_NOT_SET;
if (xlat->flags.impure_func) {
fr_strerror_const("Expansion requires async operations");
xlat_escape_legacy_t escape, void const *escape_ctx)
{
fr_value_box_list_t result;
- unlang_result_t unlang_result = { .rcode = RLM_MODULE_NOT_SET, .priority = MOD_ACTION_NOT_SET };
+ unlang_result_t unlang_result = UNLANG_RESULT_NOT_SET;
TALLOC_CTX *pool = talloc_new(NULL);
rlm_rcode_t rcode;
char *str;
static int xlat_purify_list_internal(xlat_exp_head_t *head, request_t *request, fr_token_t quote)
{
int rcode;
- unlang_result_t result = { .rcode = RLM_MODULE_NOT_SET, .priority = MOD_ACTION_NOT_SET };
+ unlang_result_t result = UNLANG_RESULT_NOT_SET;
fr_value_box_list_t list;
xlat_flags_t our_flags;
xlat_exp_t *node, *next;