summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-12 16:30:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-12 16:30:50 +0000
commit03f7a9976b388e476f2850c33f22cc63572f6a48 (patch)
tree212211aed9deabbdb3b4aabe5c95343e84e0bb28 /mdoc.c
parentdd35a6706a756677ff1c2734a6eb2fad8a6784fb (diff)
downloadmandoc-03f7a9976b388e476f2850c33f22cc63572f6a48.tar.gz
Added -nested (doesn't do anything).
Added .%C. .Cd is now callable. Added .Rv -std.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index 72e63a1c..aaee0efa 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -73,7 +73,8 @@ const char *const __mdoc_macronames[MDOC_MAX] = {
"Bk", "Ek", "Bt", "Hf",
"Fr", "Ud", "Lb", "Ap",
"Lp", "Lk", "Mt", "Brq",
- "Bro", "Brc"
+ /* LINTED */
+ "Bro", "Brc", "\%C"
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {
@@ -85,7 +86,7 @@ const char *const __mdoc_argnames[MDOC_ARG_MAX] = {
"ohang", "inset", "column",
"width", "compact", "std",
"filled", "words", "emphasis",
- "symbolic"
+ "symbolic", "nested"
};
const char * const *mdoc_macronames = __mdoc_macronames;
@@ -257,7 +258,8 @@ mdoc_macro(struct mdoc *m, int tok,
"disallowed in prologue"));
if (1 != pp && ! (MDOC_CALLABLE & mdoc_macros[tok].flags))
- return(mdoc_perr(m, ln, pp, "not callable"));
+ return(mdoc_perr(m, ln, pp, "%s not callable",
+ mdoc_macronames[tok]));
return((*mdoc_macros[tok].fp)(m, tok, ln, pp, pos, buf));
}