aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit0fe0edf89487fb5d13d2cd07f35eecdb45e87af7 (patch)
tree872b070e0e504f46df83351f34d291e93c667416 /main.c
parent8532b513ad046c8c7407add6f29b742c717bb60e (diff)
downloadmandoc-0fe0edf89487fb5d13d2cd07f35eecdb45e87af7.tar.gz
mandoc-0fe0edf89487fb5d13d2cd07f35eecdb45e87af7.tar.zst
mandoc-0fe0edf89487fb5d13d2cd07f35eecdb45e87af7.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 941fa5e2..b6954da2 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.136 2011/01/10 14:40:30 kristaps Exp $ */
+/* $Id: main.c,v 1.137 2011/01/11 00:11:45 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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",