diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-11 00:11:45 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-11 00:11:45 +0000 |
commit | e86d735736590229d3795c7000334674b1b54359 (patch) | |
tree | a09d91906261b72cce7cb3b703831fe3895d7f1b /mandoc.h | |
parent | ed5e3c51cf000a55a9774ad85994aa7c35abc0df (diff) | |
download | mandoc-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |