summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-05-14 19:52:43 +0000
committerschwarze <schwarze@openbsd.org>2010-05-14 19:52:43 +0000
commitbc49dbe17caf2a6bd9a7026019f6b8ca520f8c75 (patch)
tree0728aca4e989f1dc7955f9d116d392dca66f32e2 /usr.bin/mandoc/man.h
parentavoid builtins completely, so avoid possible issues with gcc4. (diff)
downloadwireguard-openbsd-bc49dbe17caf2a6bd9a7026019f6b8ca520f8c75.tar.xz
wireguard-openbsd-bc49dbe17caf2a6bd9a7026019f6b8ca520f8c75.zip
Integrate kristaps@' end-of-sentence (EOS) framework
which is simpler and more powerful than mine, and remove mine. * man(7) now has EOS handling, too * put EOS detection into its own function in libmandoc * use node and termp flags to communicate the EOS condition * no more EOS pseudo-macro * no more non-printable EOS marker character on the formatter level This slightly breaks EOS detection after trailing punctuation in mdoc(7) macros, but that will be restored soon.
Diffstat (limited to 'usr.bin/mandoc/man.h')
-rw-r--r--usr.bin/mandoc/man.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man.h b/usr.bin/mandoc/man.h
index ecf250e1dd4..fd4451bfce9 100644
--- a/usr.bin/mandoc/man.h
+++ b/usr.bin/mandoc/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.16 2010/05/13 20:34:29 schwarze Exp $ */
+/* $Id: man.h,v 1.17 2010/05/14 19:52:43 schwarze Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -96,7 +96,8 @@ struct man_node {
int flags;
#define MAN_VALID (1 << 0)
#define MAN_ACTED (1 << 1)
-#define MAN_USE (1 << 2)
+#define MAN_EOS (1 << 2)
+#define MAN_USE (1 << 3)
enum man_type type;
char *string;
struct man_node *head;