* mdocml: ISO C99 explicitly forbids forward references to enum types
@ 2014-12-21 14:15 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-12-21 14:15 UTC (permalink / raw)
To: source
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 <string.h>
+#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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-21 14:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-21 14:15 mdocml: ISO C99 explicitly forbids forward references to enum types schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).