diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-26 04:09:45 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-26 04:09:45 +0000 |
commit | bf91378aa0490e0917301c7a0525831c1ffcc6b0 (patch) | |
tree | e8b11962f7e13765ec8428c9657488d47bda1469 /mdoc_action.c | |
parent | a431e0577bc752f93c6b97e47de59c843d59bd96 (diff) | |
download | mandoc-bf91378aa0490e0917301c7a0525831c1ffcc6b0.tar.gz mandoc-bf91378aa0490e0917301c7a0525831c1ffcc6b0.tar.zst mandoc-bf91378aa0490e0917301c7a0525831c1ffcc6b0.zip |
Full `%U' support.
`Lk' display fixed.
Renamed arg2xxxx as a2xxxx for consistency.
Renamed print_foot to print_man_foot for consistency.
Removed default printing of `~' when `Lk' not provided (not sure where I got that from).
Diffstat (limited to 'mdoc_action.c')
-rw-r--r-- | mdoc_action.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index 52533b23..709701d4 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.43 2009/10/24 05:52:13 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.44 2009/10/26 04:09:45 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -14,13 +14,16 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef OSNAME #include <sys/utsname.h> +#endif #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> #include "libmdoc.h" @@ -174,7 +177,7 @@ static const struct actions mdoc_actions[MDOC_MAX] = { { NULL, NULL }, /* Ud */ { NULL, post_lb }, /* Lb */ { NULL, NULL }, /* Lp */ - { NULL, post_tilde }, /* Lk */ + { NULL, NULL }, /* Lk */ { NULL, NULL }, /* Mt */ { NULL, NULL }, /* Brq */ { NULL, NULL }, /* Bro */ @@ -771,7 +774,6 @@ post_tilde(POST_ARGS) np = n; m->next = MDOC_NEXT_CHILD; - /* XXX: not documented for `Lk'. */ if ( ! mdoc_word_alloc(m, n->line, n->pos, "~")) return(0); m->last = np; |