summaryrefslogtreecommitdiffstats
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-26 04:09:45 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-26 04:09:45 +0000
commit19a32a4c143965883bb87247ee3c503bd159f61f (patch)
treec6c65190ec32a4b4c439bfee45ffedaf53c0f319 /mdoc_action.c
parent135785a8d163dcf9961552ae584586e0c1c9e973 (diff)
downloadmandoc-19a32a4c143965883bb87247ee3c503bd159f61f.tar.gz
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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index 83fa5835..4c9ae153 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -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;