} \
\
*i = r; \
- return 0; \
+ return 1; \
}
#define DEFINE_CONFIG_PARSE_PTR(function, parser, type, msg) \
log_syntax(unit, LOG_WARNING, filename, line, r, \
msg ", ignoring: %s", rvalue); \
\
- return 0; \
+ return 1; \
}
#define DEFINE_CONFIG_PARSE_ENUM_FULL(function, from_string, type, msg) \
} \
\
*i = x; \
- return 0; \
+ return 1; \
}
#define DEFINE_CONFIG_PARSE_ENUM(function, name, type, msg) \
\
if (isempty(rvalue)) { \
*i = default_value; \
- return 0; \
+ return 1; \
} \
\
x = name##_from_string(rvalue); \
} \
\
*i = x; \
- return 0; \
+ return 1; \
}
#define DEFINE_CONFIG_PARSE_ENUMV(function, name, type, invalid, msg) \
*(xs + i) = invalid; \
} \
\
- return free_and_replace(*enums, xs); \
+ free_and_replace(*enums, xs); \
+ return 1; \
}
int config_parse_unsigned_bounded(