summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/html.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-11-07 13:57:55 +0000
committerschwarze <schwarze@openbsd.org>2015-11-07 13:57:55 +0000
commitdcd684cdbc4885011c1b846cb6d6a6de8d0fdabf (patch)
treeccce1f2ee44a7d4816fff8d8a81cdd6fdb5adaad /usr.bin/mandoc/html.h
parentUse input handlers for bridge(4). (diff)
downloadwireguard-openbsd-dcd684cdbc4885011c1b846cb6d6a6de8d0fdabf.tar.xz
wireguard-openbsd-dcd684cdbc4885011c1b846cb6d6a6de8d0fdabf.zip
In private header files, __BEGIN_DECLS and __END_DECLS are pointless.
Because these work slightly differently on different systems, they are becoming a maintenance burden in the portable version, so delete them. Besides, one of the chief design goals of the mandoc toolbox is to make sure that nothing related to documentation requires C++. Consequently, linking mandoc against any kind of C++ program would defeat the purpose and is not supported. I don't understand why kristaps@ added them in the first place.
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r--usr.bin/mandoc/html.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h
index d8b22aaec92..577643d1bbe 100644
--- a/usr.bin/mandoc/html.h
+++ b/usr.bin/mandoc/html.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: html.h,v 1.33 2015/10/13 22:57:49 schwarze Exp $ */
+/* $OpenBSD: html.h,v 1.34 2015/11/07 13:57:55 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -142,7 +142,6 @@ struct html {
#define HTML_FRAGMENT (1 << 0) /* don't emit HTML/HEAD/BODY */
};
-__BEGIN_DECLS
struct tbl_span;
struct eqn;
@@ -172,5 +171,3 @@ void buffmt_man(struct html *,
void buffmt_includes(struct html *, const char *);
int html_strlen(const char *);
-
-__END_DECLS