schema compile CHANGE basic implementation of applying groupings into uses
Refine and uses-augment not yet implemented.
diff --git a/src/tree_schema_internal.h b/src/tree_schema_internal.h
index 60b616b..219a2c7 100644
--- a/src/tree_schema_internal.h
+++ b/src/tree_schema_internal.h
@@ -61,6 +61,11 @@
struct lysc_ctx {
struct ly_ctx *ctx;
struct lys_module *mod;
+ struct lys_module *mod_def; /* context module for the definitions of the nodes being currently
+ processed - groupings are supposed to be evaluated in place where
+ defined, but its content instances are supposed to be placed into
+ the target module (mod) */
+ struct ly_set groupings; /* stack for groupings circular check */
struct ly_set unres; /* to validate leafref's target and xpath of when/must */
uint16_t path_len;
#define LYSC_CTX_BUFSIZE 4078