From e2b62db20c0f9cce5dd25c92cf12b7d37531f1a4 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 2 Jan 2009 14:06:16 +0000 Subject: *** empty log message *** --- macro.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'macro.c') 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) { -- cgit