summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/libmandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-14 19:52:44 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-05-14 19:52:44 +0000
commit3cce8de3c5ac3b5f6a69a551cd7f542ea28ce781 (patch)
treeccf8b10982fe7aeb28b4829db92824206e362dc1 /usr.bin/mandoc/libmandoc.h
parent91f46c931780d7b547ff88e7f5860d322a57cfca (diff)
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/libmandoc.h')
-rw-r--r--usr.bin/mandoc/libmandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/libmandoc.h b/usr.bin/mandoc/libmandoc.h
index 23588a422c0..7b43a25e329 100644
--- a/usr.bin/mandoc/libmandoc.h
+++ b/usr.bin/mandoc/libmandoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmandoc.h,v 1.3 2009/12/23 22:30:17 schwarze Exp $ */
+/* $Id: libmandoc.h,v 1.4 2010/05/14 19:52:43 schwarze Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -29,6 +29,7 @@ time_t mandoc_a2time(int, const char *);
#define MTIME_REDUCED (1 << 1)
#define MTIME_MDOCDATE (1 << 2)
#define MTIME_ISO_8601 (1 << 3)
+int mandoc_eos(const char *, size_t);
__END_DECLS