summaryrefslogtreecommitdiffstatshomepage
path: root/man_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 15:41:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 15:41:09 +0000
commit364660607f78ece4469bf93ed5a754c04ec61847 (patch)
tree98a745094e489116617f1e7baa6ab167c9c4ed3e /man_macro.c
parent1b03ebdce412e8ef752ed49e9aba8d666cdc9bf2 (diff)
downloadmandoc-364660607f78ece4469bf93ed5a754c04ec61847.tar.gz
mandoc-364660607f78ece4469bf93ed5a754c04ec61847.tar.zst
mandoc-364660607f78ece4469bf93ed5a754c04ec61847.zip
-man linked to mandoc in documentation.
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/man_macro.c b/man_macro.c
index 942f3a69..baeea39f 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.3 2009/03/23 15:20:51 kristaps Exp $ */
+/* $Id: man_macro.c,v 1.4 2009/03/23 15:41:09 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -56,8 +56,7 @@ man_macro(struct man *man, int tok, int line,
man->next = MAN_NEXT_SIBLING;
}
- /* TODO: validate. */
- /* TODO: validate. */
+ /* TODO: validate & actions. */
man->last = n;
man->next = MAN_NEXT_SIBLING;
@@ -66,8 +65,17 @@ man_macro(struct man *man, int tok, int line,
}
-/* ARGSUSED */
int
+man_macroend(struct man *m)
+{
+
+ /* TODO: validate & actions. */
+ return(1);
+}
+
+
+/* ARGSUSED */
+static int
man_args(struct man *man, int line,
int *pos, char *buf, char **v)
{