#define PAIR_SPACE(_cs) ((_cs->depth + 1) * 2)
#define SECTION_SPACE(_cs) (_cs->depth * 2)
-void cf_pair_debug(CONF_SECTION const *cs, CONF_PAIR *cp, conf_parser_t const *rule)
+void cf_pair_debug_log(CONF_SECTION const *cs, CONF_PAIR *cp, conf_parser_t const *rule)
{
char const *value;
char *tmp = NULL;
* Switch between custom parsing function
* and the standard value parsing function.
*/
- cf_pair_debug(cs, cp, rule);
+ cf_pair_debug_log(cs, cp, rule);
if (cf_pair_is_parsed(cp)) continue;
ret = func(value_ctx, entry, base, cf_pair_to_item(cp), rule);
}
if (deprecated) goto deprecated;
- cf_pair_debug(cs, cp, rule);
+ cf_pair_debug_log(cs, cp, rule);
if (cf_pair_is_parsed(cp)) return 0;
ret = func(ctx, out, base, cf_pair_to_item(cp), rule);
#define CF_FILE_CONFIG (1 << 2)
#define CF_FILE_MODULE (1 << 3)
-void cf_pair_debug(CONF_SECTION const *cs, CONF_PAIR *cp, conf_parser_t const *rule);
+void cf_pair_debug_log(CONF_SECTION const *cs, CONF_PAIR *cp, conf_parser_t const *rule);
/*
* Type validation and conversion
}
}
+/** Ease of use from debugger
+ */
+void cf_pair_debug(CONF_SECTION *cp)
+{
+ cf_debug(cp);
+}
+
+/** Ease of use from debugger
+ */
+void cf_section_debug(CONF_SECTION *cs)
+{
+ cf_debug(cs);
+}
+
/*
* Used when we don't need the children any more, as with
*
#define cf_debug(_cf) _cf_debug(CF_TO_ITEM(_cf))
void _cf_debug(CONF_ITEM const *ci);
+void cf_pair_debug(CONF_SECTION *cp);
+void cf_section_debug(CONF_SECTION *cs);
+
#define cf_canonicalize_error(_ci, _slen, _msg, _str) _cf_canonicalize_error(CF_TO_ITEM(_ci), _slen, _msg, _str)
void _cf_canonicalize_error(CONF_ITEM *ci, ssize_t slen, char const *msg, char const *str);