libyang FEATURE introduce and use new ly_bool type
To indicate simple flags or true/false return values, use a standalone
ly_bool type.
We do not use stdbool's bool type to avoid need to mimic all its
features on platforms that do not provide it. ly_bool is just a simple
rename for uint8_t and the reason to use it is only a better readability
of the meaning of the variables or function's return values.
diff --git a/src/printer_internal.h b/src/printer_internal.h
index 3703ad0..5894923 100644
--- a/src/printer_internal.h
+++ b/src/printer_internal.h
@@ -188,20 +188,18 @@
* @brief Check whether a node value equals to its default one.
*
* @param[in] node Term node to test.
- * @return 0 if no,
- * @return 1 if yes.
+ * @return false (no, it is not a default node) or true (yes, it is default)
*/
-uint8_t ly_is_default(const struct lyd_node *node);
+ly_bool ly_is_default(const struct lyd_node *node);
/**
* @brief Check whether the node should even be printed.
*
* @param[in] node Node to check.
* @param[in] options Printer options.
- * @return 0 if no.
- * @return 1 if yes.
+ * @return false (no, it should not be printed) or true (yes, it is supposed to be printed)
*/
-uint8_t ly_should_print(const struct lyd_node *node, uint32_t options);
+ly_bool ly_should_print(const struct lyd_node *node, uint32_t options);
/**
* @brief Generic printer of the given format string into the specified output.