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 /main.c | |
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 'main.c')
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -192,6 +192,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "input stack limit exceeded, infinite loop?", "skipping bad character", + "escaped character not allowed in a name", "skipping text before the first section header", "skipping unknown macro", "NOT IMPLEMENTED: skipping request", |