summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/tag.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-11-07 13:57:56 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-11-07 13:57:56 +0000
commita11aaf786b088aa4b4be99af397920053253dc33 (patch)
tree94bc151f57fecbbc84bb162187759ba2d5c640fa /usr.bin/mandoc/tag.h
parent6b6a84a4fe6c7ca37e0a1a63256191a63efe70d7 (diff)
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/tag.h')
-rw-r--r--usr.bin/mandoc/tag.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/mandoc/tag.h b/usr.bin/mandoc/tag.h
index 0ce9571d904..46d6032b172 100644
--- a/usr.bin/mandoc/tag.h
+++ b/usr.bin/mandoc/tag.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tag.h,v 1.5 2015/07/28 18:38:05 schwarze Exp $ */
+/* $OpenBSD: tag.h,v 1.6 2015/11/07 13:57:55 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -22,11 +22,8 @@ struct tag_files {
int tfd;
};
-__BEGIN_DECLS
struct tag_files *tag_init(void);
void tag_put(const char *, int, size_t);
void tag_write(void);
void tag_unlink(void);
-
-__END_DECLS