VAR_EXPAND_PARAMETER_VALUE_TYPE_COUNT
};
-union var_expand_parameter_value {
+struct var_expand_parameter_value {
const char *str;
intmax_t num;
};
const char *key;
int idx;
enum var_expand_parameter_value_type value_type;
- union var_expand_parameter_value value;
+ struct var_expand_parameter_value value;
};
struct var_expand_filter {
static void
push_named_argument(VAR_EXPAND_PARSER_STYPE *state, const char *name,
enum var_expand_parameter_value_type type,
- const union var_expand_parameter_value *value)
+ const struct var_expand_parameter_value *value)
{
struct var_expand_parameter *par =
p_new(state->plist->pool, struct var_expand_parameter, 1);
static void
push_argument(VAR_EXPAND_PARSER_STYPE *state,
enum var_expand_parameter_value_type type,
- const union var_expand_parameter_value *value)
+ const struct var_expand_parameter_value *value)
{
struct var_expand_parameter *par =
p_new(state->plist->pool, struct var_expand_parameter, 1);
static void create_literal(VAR_EXPAND_PARSER_STYPE *pstate,
const char *value)
{
- union var_expand_parameter_value ep_value = {
+ struct var_expand_parameter_value ep_value = {
.str = value
};
if (pstate->pp != NULL && pstate->pp->only_literal) {
pstate->p->only_literal = TRUE;
}
-static union var_expand_parameter_value tmp_value;
+static struct var_expand_parameter_value tmp_value;
%}