summaryrefslogtreecommitdiffstats
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-02 14:06:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-02 14:06:16 +0000
commite2b62db20c0f9cce5dd25c92cf12b7d37531f1a4 (patch)
tree518bb91fbdc26a23994f842a329484de6c36e571 /macro.c
parentbc8a9947a973470047f9e7e24928ad2a2ecabf6a (diff)
downloadmandoc-e2b62db20c0f9cce5dd25c92cf12b7d37531f1a4.tar.gz
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/macro.c b/macro.c
index b0447ba1..fc39a75e 100644
--- a/macro.c
+++ b/macro.c
@@ -146,6 +146,15 @@ append_text_argv(struct mdoc *mdoc, int tok, int pos,
if ( ! mdoc_valid_pre(mdoc, tok, pos, 0, NULL, argc, argv))
return(0);
+
+ switch (tok) {
+ case (MDOC_Pf):
+ /* TODO: only use first two arguments in element. */
+ break;
+ default:
+ break;
+ }
+
mdoc_elem_alloc(mdoc, pos, tok, (size_t)argc,
argv, (size_t)sz, _CC(args));
mdoc->next = MDOC_NEXT_SIBLING;
@@ -332,6 +341,9 @@ macro_close_explicit(MACRO_PROT_ARGS)
case (MDOC_Re):
tt = MDOC_Rs;
break;
+ case (MDOC_Ef):
+ tt = MDOC_Bf;
+ break;
default:
abort();
/* NOTREACHED */
@@ -542,6 +554,10 @@ again:
}
+/*
+ * FIXME: like in with macro_constant, have the append_ routine chop the
+ * number of requisite arguments (this is ugly when done in-line).
+ */
int
macro_constant_delimited(MACRO_PROT_ARGS)
{