diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-02 14:06:16 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-02 14:06:16 +0000 |
commit | e2b62db20c0f9cce5dd25c92cf12b7d37531f1a4 (patch) | |
tree | 518bb91fbdc26a23994f842a329484de6c36e571 /macro.c | |
parent | bc8a9947a973470047f9e7e24928ad2a2ecabf6a (diff) | |
download | mandoc-e2b62db20c0f9cce5dd25c92cf12b7d37531f1a4.tar.gz |
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r-- | macro.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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) { |