summaryrefslogtreecommitdiffstats
path: root/main.c
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 /main.c
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 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 055ad2d1..87ba122b 100644
--- a/main.c
+++ b/main.c
@@ -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",