libyang REFACTOR rename sized array size to count
... because it reflects the fact that it may not
always (internally) be the size of the array.
diff --git a/src/lyb.h b/src/lyb.h
index 5e14a03..4fd75d5 100644
--- a/src/lyb.h
+++ b/src/lyb.h
@@ -35,7 +35,7 @@
size_t position;
uint8_t inner_chunks;
} *subtrees;
- LY_ARRAY_SIZE_TYPE subtree_size;
+ LY_ARRAY_COUNT_TYPE subtree_size;
size_t byte_count; /**< printed/parsed bytes */
const struct ly_ctx *ctx;
@@ -87,7 +87,7 @@
*/
/* just a shortcut */
-#define LYB_LAST_SUBTREE(lybctx) lybctx->subtrees[LY_ARRAY_SIZE(lybctx->subtrees) - 1]
+#define LYB_LAST_SUBTREE(lybctx) lybctx->subtrees[LY_ARRAY_COUNT(lybctx->subtrees) - 1]
/* struct lyd_lyb_subtree allocation step */
#define LYB_SUBTREE_STEP 4