Commit 54940032 authored by Pekka Pessi's avatar Pekka Pessi

su_tag.h, su_taglist.c: using isize_t with tl_gets()/tl_tgets().

darcs-hash:20060925181214-65a35-30977412d8a5b608cbef852c04f0e816822ce16b.gz
parent 3889ed13
......@@ -134,8 +134,8 @@ SOFIAPUBFUN int t_scan(tag_type_t tt, su_home_t *home, char const *s,
/* Tagarg functions */
SOFIAPUBFUN tagi_t *tl_tlist(su_home_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN size_t tl_tmove(tagi_t *dst, size_t, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN int tl_gets(tagi_t const lst[], tag_type_t, tag_value_t, ...);
SOFIAPUBFUN int tl_tgets(tagi_t lst[], tag_type_t, tag_value_t, ...);
SOFIAPUBFUN isize_t tl_gets(tagi_t const lst[], tag_type_t, tag_value_t, ...);
SOFIAPUBFUN isize_t tl_tgets(tagi_t lst[], tag_type_t, tag_value_t, ...);
SOFIAPUBFUN tagi_t *tl_tfilter(su_home_t *, tagi_t const lst[],
tag_type_t, tag_value_t, ...);
SOFIAPUBFUN int tl_tremove(tagi_t lst[], tag_type_t, tag_value_t, ...);
......
......@@ -233,7 +233,7 @@ tagi_t *tl_move(tagi_t *dst, tagi_t const src[])
return dst;
}
/** Calculate effective length of a tag list. */
/** Calculate effective length of a tag list as bytes. */
size_t tl_len(tagi_t const lst[])
{
size_t len = 0;
......@@ -384,9 +384,9 @@ static int tl_get(tag_type_t tt, void *p, tagi_t const lst[])
}
/** Find tags from given list. */
int tl_gets(tagi_t const lst[], tag_type_t tag, tag_value_t value, ...)
isize_t tl_gets(tagi_t const lst[], tag_type_t tag, tag_value_t value, ...)
{
int n = 0;
isize_t n = 0;
tagi_t *t;
ta_list ta;
......@@ -423,9 +423,9 @@ int tl_gets(tagi_t const lst[], tag_type_t tag, tag_value_t value, ...)
*
* @sa tl_gets()
*/
int tl_tgets(tagi_t lst[], tag_type_t tag, tag_value_t value, ...)
isize_t tl_tgets(tagi_t lst[], tag_type_t tag, tag_value_t value, ...)
{
int n = 0;
isize_t n = 0;
tagi_t *t;
ta_list ta;
......@@ -778,6 +778,7 @@ tagi_t *tl_vllist(tag_type_t tag, tag_value_t value, va_list ap)
return rv;
}
/** Make a linear tag list until TAG_END().
*
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment