tests CHANGE speedup building
Instead of including C source files and bilding each test from the
sources, use shared library objects and link them into the resulting
test executable.
Maintaining list of included C source files was unmaintainable with the
increasing number of source files and dependencies between them.
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 283ba29..546b4d2 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -22,8 +22,8 @@
#include "tree_schema_internal.h"
#include "xpath.h"
-static void lysp_grp_free(struct ly_ctx *ctx, struct lysp_grp *grp);
-static void lysp_node_free(struct ly_ctx *ctx, struct lysp_node *node);
+void lysp_grp_free(struct ly_ctx *ctx, struct lysp_grp *grp);
+void lysp_node_free(struct ly_ctx *ctx, struct lysp_node *node);
static void
lysp_stmt_free(struct ly_ctx *ctx, struct lysp_stmt *stmt)
@@ -40,7 +40,7 @@
free(stmt);
}
-static void
+void
lysp_ext_instance_free(struct ly_ctx *ctx, struct lysp_ext_instance *ext)
{
struct lysp_stmt *stmt, *next;
@@ -94,7 +94,7 @@
FREE_ARRAY(ctx, ext->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_feature_free(struct ly_ctx *ctx, struct lysp_feature *feat)
{
FREE_STRING(ctx, feat->name);
@@ -104,7 +104,7 @@
FREE_ARRAY(ctx, feat->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_ident_free(struct ly_ctx *ctx, struct lysp_ident *ident)
{
FREE_STRING(ctx, ident->name);
@@ -184,7 +184,7 @@
}
-static void
+void
lysp_action_free(struct ly_ctx *ctx, struct lysp_action *action)
{
FREE_STRING(ctx, action->name);
@@ -198,7 +198,7 @@
FREE_ARRAY(ctx, action->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_notif_free(struct ly_ctx *ctx, struct lysp_notif *notif)
{
struct lysp_node *node, *next;
@@ -216,7 +216,7 @@
FREE_ARRAY(ctx, notif->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_grp_free(struct ly_ctx *ctx, struct lysp_grp *grp)
{
struct lysp_node *node, *next;
@@ -243,7 +243,7 @@
FREE_ARRAY(ctx, when->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_augment_free(struct ly_ctx *ctx, struct lysp_augment *augment)
{
struct lysp_node *node, *next;
@@ -261,7 +261,7 @@
FREE_ARRAY(ctx, augment->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_deviate_free(struct ly_ctx *ctx, struct lysp_deviate *d)
{
struct lysp_deviate_add *add = (struct lysp_deviate_add*)d;
@@ -290,7 +290,7 @@
}
}
-static void
+void
lysp_deviation_free(struct ly_ctx *ctx, struct lysp_deviation *dev)
{
struct lysp_deviate *next, *iter;
@@ -318,7 +318,7 @@
FREE_ARRAY(ctx, ref->exts, lysp_ext_instance_free);
}
-static void
+void
lysp_node_free(struct ly_ctx *ctx, struct lysp_node *node)
{
struct lysp_node *child, *next;
@@ -520,7 +520,7 @@
FREE_ARRAY(ctx, ident->exts, lysc_ext_instance_free);
}
-static void
+void
lysc_feature_free(struct ly_ctx *ctx, struct lysc_feature *feat)
{
FREE_STRING(ctx, feat->name);