schema CHANGE macros for matching statements groups
Extend the set of macros for matching groups of ly_stmt values. Except
the data nodes (macro was renamed from LY_STMT_IS_NODE() to
LY_STMT_IS_DATA_NODE()) and operations, there is newly a macro covering
all the possible schema nodes that maps to lysc_node and lysp_node.
diff --git a/src/schema_compile.c b/src/schema_compile.c
index a02519c..3317c4f 100644
--- a/src/schema_compile.c
+++ b/src/schema_compile.c
@@ -211,8 +211,8 @@
LY_ARRAY_COUNT_TYPE u;
LY_ARRAY_FOR(ext->substmts, u) {
- if (LY_STMT_IS_NODE(substmt)) {
- if (!LY_STMT_IS_NODE(ext->substmts[u].stmt)) {
+ if (LY_STMT_IS_DATA_NODE(substmt)) {
+ if (!LY_STMT_IS_DATA_NODE(ext->substmts[u].stmt)) {
continue;
}
} else if (LY_STMT_IS_OP(substmt)) {