summaryrefslogtreecommitdiffstats
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
commita3270aeee419e3ae560753e7fee9a12e9d54ed22 (patch)
tree797f8ce16a5f5207228fbc8795cc190fe95cb36a /mandoc.h
parentefe350390b3c05f914ca4cc6f33f97842a2d2e79 (diff)
downloadmandoc-a3270aeee419e3ae560753e7fee9a12e9d54ed22.tar.gz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index 28319f2f..09dd6567 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,7 +1,7 @@
/* $Id$ */
/*
* 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 */