From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 8 22:16:20 2007 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CCA016A41B for ; Mon, 8 Oct 2007 22:16:20 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (pool-71-182-89-93.ptldor.fios.verizon.net [71.182.89.93]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC6F13C467 for ; Mon, 8 Oct 2007 22:16:18 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (localhost.home.localnet [127.0.0.1]) by schitzo.solgatos.com (8.14.1/8.13.8) with ESMTP id l98MGDnp020405; Mon, 8 Oct 2007 15:16:13 -0700 Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.14.1/8.13.4/Submit) with UUCP id l98MGDfg020402; Mon, 8 Oct 2007 15:16:13 -0700 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id WAA05323; Mon, 8 Oct 2007 22:07:37 GMT Message-Id: <200710082207.WAA05323@sopwith.solgatos.com> To: freebsd-multimedia@freebsd.org, freebsd-ports-bugs@freebsd.org Date: Mon, 08 Oct 2007 15:07:37 +0100 From: Dieter X-Mailman-Approved-At: Mon, 08 Oct 2007 22:25:34 +0000 Cc: jason.harmening@gmail.com Subject: Fix for port textproc/ezxml (was: HDTV capture driver for cx2388x) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2007 22:16:20 -0000 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) {