libyang REFACTOR applying deviations, augments, and refines (#1217)
They are no longer applied as part of their
definition module compilation but instead their
target module compilation.
diff --git a/src/printer_lyb.c b/src/printer_lyb.c
index 4b27ce3..1aa2314 100644
--- a/src/printer_lyb.c
+++ b/src/printer_lyb.c
@@ -482,12 +482,12 @@
LY_CHECK_GOTO(ret, cleanup);
/* add also their modules deviating or augmenting them */
- LY_ARRAY_FOR(mod->compiled->deviated_by, u) {
- ret = ly_set_add(set, mod->compiled->deviated_by[u], 0, NULL);
+ LY_ARRAY_FOR(mod->deviated_by, u) {
+ ret = ly_set_add(set, mod->deviated_by[u], 0, NULL);
LY_CHECK_GOTO(ret, cleanup);
}
- LY_ARRAY_FOR(mod->compiled->augmented_by, u) {
- ret = ly_set_add(set, mod->compiled->augmented_by[u], 0, NULL);
+ LY_ARRAY_FOR(mod->augmented_by, u) {
+ ret = ly_set_add(set, mod->augmented_by[u], 0, NULL);
LY_CHECK_GOTO(ret, cleanup);
}
}