From 073b729fad16967c5cb97cb3aa314b058e3de113 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 12 Mar 2009 16:30:50 +0000 Subject: Added -nested (doesn't do anything). Added .%C. .Cd is now callable. Added .Rv -std. --- action.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index 9fc1d2d0..c50cc7c1 100644 --- a/action.c +++ b/action.c @@ -1,4 +1,4 @@ -/* $Id: action.c,v 1.40 2009/03/11 00:39:58 kristaps Exp $ */ +/* $Id: action.c,v 1.41 2009/03/12 16:30:50 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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) -- cgit v1.2.3