From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id c1248fb8; for ; Sun, 21 Dec 2014 09:15:06 -0500 (EST) Date: Sun, 21 Dec 2014 09:15:06 -0500 (EST) Message-Id: <5989883037376745427.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: ISO C99 explicitly forbids forward references to enum types X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- ISO C99 explicitly forbids forward references to enum types (6.7.2.3.3.); patch from daniel@ Modified Files: -------------- mdocml: libmandoc.h mandoc_headers.3 msec.c Revision Data ------------- Index: msec.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/msec.c,v retrieving revision 1.13 retrieving revision 1.14 diff -Lmsec.c -Lmsec.c -u -p -r1.13 -r1.14 --- msec.c +++ msec.c @@ -20,6 +20,7 @@ #include +#include "mandoc.h" #include "libmandoc.h" #define LINE(x, y) \ Index: mandoc_headers.3 =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandoc_headers.3,v retrieving revision 1.1 retrieving revision 1.2 diff -Lmandoc_headers.3 -Lmandoc_headers.3 -u -p -r1.1 -r1.2 --- mandoc_headers.3 +++ mandoc_headers.3 @@ -47,7 +47,7 @@ HTML formatters search tools .El .Pp -Note that mere usage of an opaque type does +Note that mere usage of an opaque struct type does .Em not require inclusion of the header where that type is defined. .Ss Parser interface @@ -204,7 +204,11 @@ are included, the same file should not i Requires .In sys/types.h for -.Vt size_t . +.Vt size_t +and +.Qq Pa mandoc.h +for +.Vt enum mandocerr . .Pp Provides .Vt enum rofferr , @@ -222,8 +226,7 @@ from .Pa roff.c for function prototypes. Uses the types -.Vt enum mandocerr , -.Vt struct tbl_span , +.Vt struct tbl_span and .Vt struct eqn from Index: libmandoc.h =================================================================== RCS file: /home/cvs/mdocml/mdocml/libmandoc.h,v retrieving revision 1.51 retrieving revision 1.52 diff -Llibmandoc.h -Llibmandoc.h -u -p -r1.51 -r1.52 --- libmandoc.h +++ libmandoc.h @@ -37,7 +37,6 @@ __BEGIN_DECLS struct mparse; struct mchars; -enum mandocerr; struct tbl_span; struct eqn; struct roff; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv