Date: Mon, 08 Oct 2007 15:07:37 +0100 From: Dieter <freebsd@sopwith.solgatos.com> To: freebsd-multimedia@freebsd.org, freebsd-ports-bugs@freebsd.org Cc: jason.harmening@gmail.com Subject: Fix for port textproc/ezxml (was: HDTV capture driver for cx2388x) Message-ID: <200710082207.WAA05323@sopwith.solgatos.com>
next in thread | raw e-mail | index | archive | help
Jason writes: > 3. Install textproc/ezxml. Portability requires prototypes. Gcc whines: ezxml.c:94: warning: no previous prototype for 'ezxml_vget' ezxml.c:137: warning: no previous prototype for 'ezxml_err' ezxml.c:159: warning: no previous prototype for 'ezxml_decode' ezxml.c:222: warning: no previous prototype for 'ezxml_open_tag' ezxml.c:234: warning: no previous prototype for 'ezxml_char_content' ezxml.c:258: warning: no previous prototype for 'ezxml_close_tag' ezxml.c:269: warning: no previous prototype for 'ezxml_ent_ok' ezxml.c:283: warning: no previous prototype for 'ezxml_proc_inst' ezxml.c:320: warning: no previous prototype for 'ezxml_internal_dtd' ezxml.c:423: warning: no previous prototype for 'ezxml_str2utf8' ezxml.c:454: warning: no previous prototype for 'ezxml_free_attr' ezxml.c:669: warning: no previous prototype for 'ezxml_ampencode' ezxml.c:695: warning: no previous prototype for 'ezxml_toxml_r' Fix: --- ezxml.c 2007/10/08 21:47:35 1.1 +++ ezxml.c 2007/10/08 21:54:04 @@ -56,6 +56,23 @@ char *EZXML_NIL[] = { NULL }; // empty, null terminated array of strings +/* prototypes */ +ezxml_t ezxml_vget(ezxml_t xml, va_list ap); +ezxml_t ezxml_err(ezxml_root_t root, char *s, const char *err, ...); +char *ezxml_decode(char *s, char **ent, char t); +void ezxml_open_tag(ezxml_root_t root, char *name, char **attr); +void ezxml_char_content(ezxml_root_t root, char *s, size_t len, char t); +ezxml_t ezxml_close_tag(ezxml_root_t root, char *name, char *s); +int ezxml_ent_ok(char *name, char *s, char **ent); +void ezxml_proc_inst(ezxml_root_t root, char *s, size_t len); +short ezxml_internal_dtd(ezxml_root_t root, char *s, size_t len); +char *ezxml_str2utf8(char **s, size_t *len); +void ezxml_free_attr(char **attr); +char *ezxml_ampencode(const char *s, size_t len, char **dst, size_t *dlen, + size_t *max, short a); +char *ezxml_toxml_r(ezxml_t xml, char **s, size_t *len, size_t *max, + size_t start, char ***attr); + // returns the first child tag with the given name or NULL if not found ezxml_t ezxml_child(ezxml_t xml, const char *name) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710082207.WAA05323>