version 1.49, 2010/05/17 22:11:42 |
version 1.50, 2010/05/30 23:59:59 |
|
|
mdoc_args(struct mdoc *m, int line, int *pos, |
mdoc_args(struct mdoc *m, int line, int *pos, |
char *buf, enum mdoct tok, char **v) |
char *buf, enum mdoct tok, char **v) |
{ |
{ |
int fl, c, i; |
int fl; |
struct mdoc_node *n; |
struct mdoc_node *n; |
|
|
fl = mdoc_argflags[tok]; |
fl = mdoc_argflags[tok]; |
Line 347 mdoc_args(struct mdoc *m, int line, int *pos, |
|
Line 347 mdoc_args(struct mdoc *m, int line, int *pos, |
|
if (MDOC_It != tok) |
if (MDOC_It != tok) |
return(args(m, line, pos, buf, fl, v)); |
return(args(m, line, pos, buf, fl, v)); |
|
|
/* |
|
* The `It' macro is a special case, as it acquires parameters from its |
|
* parent `Bl' context, specifically, we're concerned with -column. |
|
*/ |
|
|
|
for (n = m->last; n; n = n->parent) |
for (n = m->last; n; n = n->parent) |
if (MDOC_BLOCK == n->type && MDOC_Bl == n->tok) |
if (MDOC_Bl == n->tok) |
break; |
break; |
|
|
assert(n); |
if (n && LIST_column == n->data.list) { |
c = (int)(n->args ? n->args->argc : 0); |
|
assert(c > 0); |
|
|
|
/* LINTED */ |
|
for (i = 0; i < c; i++) { |
|
if (MDOC_Column != n->args->argv[i].arg) |
|
continue; |
|
fl |= ARGS_TABSEP; |
fl |= ARGS_TABSEP; |
fl &= ~ARGS_DELIM; |
fl &= ~ARGS_DELIM; |
break; |
|
} |
} |
|
|
return(args(m, line, pos, buf, fl, v)); |
return(args(m, line, pos, buf, fl, v)); |