if so, also set needs_resolving.
Because an xlat can be parsed from a module configuration, where
the dictionary is unknown. Until such time as all of the modules
are converted to use call_env, this is likely the best approach.
node->call.dict = dict;
node->flags = func->flags;
node->flags.impure_func = !func->flags.pure;
+
+ if (!dict) node->flags.needs_resolving = true;
}
void xlat_exp_finalize_func(xlat_exp_t *node)
void xlat_exp_set_name_buffer(xlat_exp_t *node, char const *fmt) CC_HINT(nonnull);
void xlat_exp_set_vpt(xlat_exp_t *node, tmpl_t *vpt) CC_HINT(nonnull);
-void xlat_exp_set_func(xlat_exp_t *node, xlat_t const *func, fr_dict_t const *dict) CC_HINT(nonnull);
+void xlat_exp_set_func(xlat_exp_t *node, xlat_t const *func, fr_dict_t const *dict) CC_HINT(nonnull(1,2));
void xlat_exp_finalize_func(xlat_exp_t *node) CC_HINT(nonnull);
/*