schema tree REFACTOR evaluate features during compilation
So that the compiled schema tree reflects the state
of all the features.
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 3d30a47..70f700a 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -767,9 +767,9 @@
if (verbose >= 2) {
fprintf(stdout, "Enabling feature %s in module %s.\n", ptr, mod->name);
}
- if (lys_feature_enable(mod, ptr)) {
+ /*if (lys_feature_enable(mod, ptr)) {
fprintf(stderr, "Feature %s not defined in module %s.\n", ptr, mod->name);
- }
+ }*/
}
free(featlist);
break;
@@ -779,7 +779,7 @@
if (verbose >= 2) {
fprintf(stdout, "Enabling all features in module %s.\n", mod->name);
}
- lys_feature_enable(mod, "*");
+ //lys_feature_enable(mod, "*");
}
}
if (!out && (outformat_s || data)) {