From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: ISO C99 explicitly forbids forward references to enum types
Date: Sun, 21 Dec 2014 09:15:06 -0500 (EST) [thread overview]
Message-ID: <5989883037376745427.enqueue@fantadrom.bsd.lv> (raw)
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
reply other threads:[~2014-12-21 14:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5989883037376745427.enqueue@fantadrom.bsd.lv \
--to=schwarze@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).