xlat_call_t call;
/** A value box
- *
*/
fr_value_box_t data;
};
#endif
};
-
typedef struct {
- char const *out; //!< Output data.
- size_t len; //!< Length of the output string.
+ char const *out; //!< Output data.
+ size_t len; //!< Length of the output string.
} xlat_out_t;
/*
* Helper functions
int xlat_tokenize_function_args(xlat_exp_head_t *head, fr_sbuff_t *in,
tmpl_rules_t const *t_rules);
-ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t const *node, fr_sbuff_escape_rules_t const *e_rules);
+ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t const *node,
+ fr_sbuff_escape_rules_t const *e_rules);
/*
* xlat_inst.c
node->quote = T_BARE_WORD;
fr_value_box_aprint(node, &name, box, NULL);
-
xlat_exp_set_name_buffer_shallow(node, name);
}
talloc_free(box);
if (box.type == FR_TYPE_BOOL) box.enumv = attr_expr_bool_enum;
(void) fr_value_box_aprint(node, &name, &box, NULL);
-
xlat_exp_set_name_buffer_shallow(node, name);
fr_value_box_copy(node, &node->data, &box);
_xlat_debug(head, 0);
}
-ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t const *node, fr_sbuff_escape_rules_t const *e_rules)
+ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t const *node,
+ fr_sbuff_escape_rules_t const *e_rules)
{
ssize_t slen;
size_t at_in = fr_sbuff_used_total(out);
our_t_rules.xlat.runtime_el = el;
fr_strerror_clear(); /* Clear error buffer */
- if (xlat_tokenize_string(head, &our_in,
- false, p_rules, &our_t_rules) < 0) {
+ if (xlat_tokenize_string(head, &our_in, false, p_rules, &our_t_rules) < 0) {
talloc_free(head);
FR_SBUFF_ERROR_RETURN(&our_in);
}
fr_strerror_clear(); /* Clear error buffer */
- if (xlat_tokenize_string(head, &our_in,
- false, p_rules, t_rules) < 0) {
+ if (xlat_tokenize_string(head, &our_in, false, p_rules, t_rules) < 0) {
talloc_free(head);
FR_SBUFF_ERROR_RETURN(&our_in);
}