aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-07-13 12:52:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-07-13 12:52:07 +0000
commitc347c2cd27346df69977ccd8c718bb4c1ec91a88 (patch)
tree52d97933e647f641f1461a44387af918ac68deb9 /mandoc.h
parent9ef07094816176da1ae6b38a6391f4b1481bc5be (diff)
downloadmandoc-c347c2cd27346df69977ccd8c718bb4c1ec91a88.tar.gz
mandoc-c347c2cd27346df69977ccd8c718bb4c1ec91a88.tar.zst
mandoc-c347c2cd27346df69977ccd8c718bb4c1ec91a88.zip
Rudimentary implementation of the .it request (input line trap).
As with any low-level roff request involving subtle interactions with macro internals, this implementation is not exact, but it does handle the simplest cases. This request occurs in man(7) code generated from DocBook, for example mysql(1) and yasm_arch(7). Thanks to brad@ for reporting the issue back in January 2011.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index c86530c4..560bf62a 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,7 +1,7 @@
-/* $Id: mandoc.h,v 1.107 2013/05/31 21:37:17 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.108 2013/07/13 12:52:07 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -145,6 +145,7 @@ enum mandocerr {
MANDOCERR_NOARGS, /* macro requires line argument(s) */
MANDOCERR_NOBODY, /* macro requires body argument(s) */
MANDOCERR_NOARGV, /* macro requires argument(s) */
+ MANDOCERR_NUMERIC, /* request requires a numeric argument */
MANDOCERR_LISTTYPE, /* missing list type */
MANDOCERR_ARGSLOST, /* line argument(s) will be lost */
MANDOCERR_BODYLOST, /* body argument(s) will be lost */