C-API: Changed type of veclen parameter to size_t in xpath_vec_flag()

Rewrite of sed -e to be portable to freebsd
This commit is contained in:
Olof hagsand 2022-12-29 15:45:16 +01:00
parent 5b9921933a
commit 6fedf65de7
8 changed files with 23 additions and 14 deletions

View file

@ -137,7 +137,7 @@ int xpath_vec_ctx(cxobj *xcur, cvec *nsc, const char *xpath, int localonly, xp
int xpath_vec_bool(cxobj *xcur, cvec *nsc, const char *xpformat, ...) __attribute__ ((format (printf, 3, 4)));
int xpath_vec_flag(cxobj *xcur, cvec *nsc, const char *xpformat, uint16_t flags,
cxobj ***vec, int *veclen, ...) __attribute__ ((format (printf, 3, 7)));
cxobj ***vec, size_t *veclen, ...) __attribute__ ((format (printf, 3, 7)));
/* Functions with explicit namespace context (nsc) set. If you do not need
* explicit namespace contexts (most do not) consider using the API functions