*/
struct unlang_frame_state_edit_s {
fr_edit_list_t *el; //!< edit list
+ rindent_t indent;
edit_map_t *current; //!< what we're currently doing.
edit_map_t first;
if (fr_value_box_cast(vp, &vp->data, vp->da->type, vp->da, box) < 0) return -1;
if (fr_pair_append(list, vp) < 0) return -1;
- RDEBUG2("%s %s %pV", current->lhs.vpt->name, fr_tokens[map->op], &vp->data);
+// RDEBUG2("%s %s %pV", current->lhs.vpt->name, fr_tokens[map->op], &vp->data);
if (single) break;
*/
current->func = check_rhs;
state->current = child;
+ RINDENT();
return 0;
}
*/
static int expanded_lhs_attribute(request_t *request, unlang_frame_state_edit_t *state, edit_map_t *current)
{
+ REXDENT();
+
if (tmpl_attr_from_result(state, ¤t->lhs, request) < 0) return -1;
return current->check_lhs(request, state, current);
{
unlang_frame_state_edit_t *state = talloc_get_type_abort(frame->state, unlang_frame_state_edit_t);
+ RINDENT_SAVE(&state->indent, request);
+
/*
* Keep running the "expand map" function until done.
*/
* failures, which simply don't
* apply the operations.
*/
+ RINDENT_RESTORE(request, &state->indent);
return UNLANG_ACTION_CALCULATE_RESULT;
}
if (!state->current->parent) break;
state->current = state->current->parent;
+ REXDENT(); /* "push child" has called RINDENT */
}
/*