summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-11 00:11:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-11 00:11:45 +0000
commite86d735736590229d3795c7000334674b1b54359 (patch)
treea09d91906261b72cce7cb3b703831fe3895d7f1b /mandoc.h
parented5e3c51cf000a55a9774ad85994aa7c35abc0df (diff)
downloadmandoc-e86d735736590229d3795c7000334674b1b54359.tar.gz
Refactoring in preparation for .rm support:
Unify parsing of names given as roff request arguments into a new function roff_getname(), which is rather different from the parsing function for normal arguments, mandoc_getarg(), because names cannot be quoted and cannot contain whitespace or escaped characters. The new function now throws an ERROR when finding escaped characters in a name. "I'm fine with this." kristaps@
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index 72782eb1..04aa7cdf 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -114,6 +114,7 @@ enum mandocerr {
MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */
MANDOCERR_BADCHAR, /* skipping bad character */
+ MANDOCERR_NAMESC, /* escaped character not allowed in a name */
MANDOCERR_NOTEXT, /* skipping text before the first section header */
MANDOCERR_MACRO, /* skipping unknown macro */
MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */