/* ====================================================================== */
/* null tag */
+static
tagi_t const *t_null_next(tagi_t const *t)
{
return NULL;
}
+static
tagi_t *t_null_move(tagi_t *dst, tagi_t const *src)
{
memset(dst, 0, sizeof(*dst));
return dst + 1;
}
+static
tagi_t *t_null_dup(tagi_t *dst, tagi_t const *src, void **bb)
{
memset(dst, 0, sizeof(*dst));
return dst + 1;
}
-tagi_t *t_null_copy(tagi_t *dst, tagi_t const *src, void **bb)
-{
- memset(dst, 0, sizeof(*dst));
- return dst + 1;
-}
-
+static
tagi_t const * t_null_find(tag_type_t tt, tagi_t const lst[])
{
return NULL;
/* ====================================================================== */
/* skip tag - placeholder in tag list */
+static
tagi_t const *t_skip_next(tagi_t const *t)
{
return t + 1;
}
+static
tagi_t *t_skip_move(tagi_t *dst, tagi_t const *src)
{
return dst;
}
+static
size_t t_skip_len(tagi_t const *t)
{
return 0;
}
+static
tagi_t *t_skip_dup(tagi_t *dst, tagi_t const *src, void **bb)
{
return dst;
}
+static
tagi_t *t_skip_filter(tagi_t *dst,
tagi_t const filter[],
tagi_t const *src,
/* ====================================================================== */
/* next tag - jump to next tag list */
+static
tagi_t const *t_next_next(tagi_t const *t)
{
return (tagi_t *)(t->t_value);
}
+static
tagi_t *t_next_move(tagi_t *dst, tagi_t const *src)
{
if (!src->t_value)
return dst;
}
+static
size_t t_next_len(tagi_t const *t)
{
if (!t->t_value)
return 0;
}
+static
tagi_t *t_next_dup(tagi_t *dst, tagi_t const *src, void **bb)
{
if (!src->t_value)
return dst;
}
+static
tagi_t *t_next_filter(tagi_t *dst,
tagi_t const filter[],
tagi_t const *src,
/* ====================================================================== */
/* filter tag - use function to filter tag */
+static
tagi_t *t_filter_with(tagi_t *dst,
tagi_t const *t,
tagi_t const *src,
/* ====================================================================== */
/* any tag - match to any tag when filtering */
+static
tagi_t *t_any_filter(tagi_t *dst,
tagi_t const filter[],
tagi_t const *src,