summaryrefslogtreecommitdiffstats
path: root/action.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 /action.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 'action.c')
-rw-r--r--action.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/action.c b/action.c
index 6fb82841..882d8852 100644
--- a/action.c
+++ b/action.c
@@ -59,7 +59,7 @@ static int post_dt(struct mdoc *);
static int post_nm(struct mdoc *);
static int post_os(struct mdoc *);
static int post_sh(struct mdoc *);
-static int post_ex(struct mdoc *);
+static int post_std(struct mdoc *);
static int post_prologue(struct mdoc *);
const struct actions mdoc_actions[MDOC_MAX] = {
@@ -85,7 +85,7 @@ const struct actions mdoc_actions[MDOC_MAX] = {
{ NULL }, /* Dv */
{ NULL }, /* Er */
{ NULL }, /* Ev */
- { post_ex }, /* Ex */
+ { post_std }, /* Ex */
{ NULL }, /* Fa */
{ NULL }, /* Fd */
{ NULL }, /* Fl */
@@ -99,7 +99,7 @@ const struct actions mdoc_actions[MDOC_MAX] = {
{ NULL }, /* Op */
{ NULL }, /* Ot */
{ NULL }, /* Pa */
- { NULL }, /* Rv */
+ { post_std }, /* Rv */
{ NULL }, /* St */
{ NULL }, /* Va */
{ NULL }, /* Vt */
@@ -177,6 +177,7 @@ const struct actions mdoc_actions[MDOC_MAX] = {
{ NULL }, /* Brq */
{ NULL }, /* Bro */
{ NULL }, /* Brc */
+ { NULL }, /* %C */
};
@@ -228,12 +229,12 @@ nwarn(struct mdoc *m, const struct mdoc_node *n, enum mwarn type)
static int
-post_ex(struct mdoc *mdoc)
+post_std(struct mdoc *mdoc)
{
/*
- * If `.Ex -std' is invoked without an argument, fill it in with
- * our name (if it's been set).
+ * If '-std' is invoked without an argument, fill it in with our
+ * name (if it's been set).
*/
if (NULL == mdoc->last->args)