info printer MAINTENANCE rename LYS_OUTPUT_NO_SUBST to LYS_OUTPUT_NO_SUBSTMT
Be consistent in naming.
diff --git a/src/printer_schema.h b/src/printer_schema.h
index 8b41381..ac0b1f6 100644
--- a/src/printer_schema.h
+++ b/src/printer_schema.h
@@ -27,7 +27,7 @@
*
* @{
*/
-#define LYS_OUTPUT_NO_SUBST 0x10 /**< Print only top-level/referede node information,
+#define LYS_OUTPUT_NO_SUBSTMT 0x10 /**< Print only top-level/referede node information,
do not print information from the substatements */
//#define LYS_OUTOPT_TREE_RFC 0x01 /**< Conform to the RFC TODO tree output (only for tree format) */
//#define LYS_OUTOPT_TREE_GROUPING 0x02 /**< Print groupings separately (only for tree format) */
diff --git a/src/printer_yang.c b/src/printer_yang.c
index 066b75c..9d30254 100755
--- a/src/printer_yang.c
+++ b/src/printer_yang.c
@@ -1185,7 +1185,7 @@
yprc_must(ctx, &inout->musts[u], NULL);
}
- if (!(ctx->options & LYS_OUTPUT_NO_SUBST)) {
+ if (!(ctx->options & LYS_OUTPUT_NO_SUBSTMT)) {
LY_LIST_FOR(inout->data, data) {
yprc_node(ctx, data);
}
@@ -1258,7 +1258,7 @@
ypr_description(ctx, notif->dsc, notif->exts, &flag);
ypr_reference(ctx, notif->ref, notif->exts, &flag);
- if (!(ctx->options & LYS_OUTPUT_NO_SUBST)) {
+ if (!(ctx->options & LYS_OUTPUT_NO_SUBSTMT)) {
LY_LIST_FOR(notif->data, data) {
ypr_open(ctx->out, &flag);
yprc_node(ctx, data);
@@ -1445,7 +1445,7 @@
yprc_node_common2(ctx, node, &flag);
- if (!(ctx->options & LYS_OUTPUT_NO_SUBST)) {
+ if (!(ctx->options & LYS_OUTPUT_NO_SUBSTMT)) {
LY_LIST_FOR(cont->child, child) {
ypr_open(ctx->out, &flag);
yprc_node(ctx, child);
@@ -1494,7 +1494,7 @@
yprc_node_common1(ctx, (struct lysc_node*)cs, &flag);
yprc_node_common2(ctx, (struct lysc_node*)cs, &flag);
- if (!(ctx->options & LYS_OUTPUT_NO_SUBST)) {
+ if (!(ctx->options & LYS_OUTPUT_NO_SUBSTMT)) {
for (child = cs->child; child && child->parent == (struct lysc_node*)cs; child = child->next) {
ypr_open(ctx->out, &flag);
yprc_node(ctx, child);
@@ -1795,7 +1795,7 @@
ypr_description(ctx, node->dsc, node->exts, NULL);
ypr_reference(ctx, node->ref, node->exts, NULL);
- if (!(ctx->options & LYS_OUTPUT_NO_SUBST)) {
+ if (!(ctx->options & LYS_OUTPUT_NO_SUBSTMT)) {
LY_LIST_FOR(list->child, child) {
ypr_open(ctx->out, &flag);
yprc_node(ctx, child);
@@ -2376,7 +2376,7 @@
yprc_identity(ctx, &modc->identities[u]);
}
- if (!(ctx->options & LYS_OUTPUT_NO_SUBST)) {
+ if (!(ctx->options & LYS_OUTPUT_NO_SUBSTMT)) {
LY_LIST_FOR(modc->data, data) {
yprc_node(ctx, data);
}