version 1.74, 2009/03/21 09:20:15 |
version 1.77, 2009/03/22 19:01:11 |
|
|
/* FIXME: .Fl, .Ar, .Cd handling of `|'. */ |
/* FIXME: .Fl, .Ar, .Cd handling of `|'. */ |
|
|
enum mwarn { |
enum mwarn { |
|
WIMPBRK, |
WMACPARM, |
WMACPARM, |
WOBS |
WOBS |
}; |
}; |
Line 198 const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
|
Line 199 const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
|
{ obsolete, 0 }, /* Es */ |
{ obsolete, 0 }, /* Es */ |
{ obsolete, 0 }, /* En */ |
{ obsolete, 0 }, /* En */ |
{ in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Dx */ |
{ in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Dx */ |
|
{ in_line_eoln, 0 }, /* %Q */ |
}; |
}; |
|
|
const struct mdoc_macro * const mdoc_macros = __mdoc_macros; |
const struct mdoc_macro * const mdoc_macros = __mdoc_macros; |
Line 235 pwarn(struct mdoc *mdoc, int line, int pos, enum mwarn |
|
Line 237 pwarn(struct mdoc *mdoc, int line, int pos, enum mwarn |
|
|
|
p = NULL; |
p = NULL; |
switch (type) { |
switch (type) { |
|
case (WIMPBRK): |
|
p = "crufty end-of-line scope violation"; |
|
break; |
case (WMACPARM): |
case (WMACPARM): |
p = "macro-like parameter"; |
p = "macro-like parameter"; |
break; |
break; |
Line 1057 blk_part_imp(MACRO_PROT_ARGS) |
|
Line 1062 blk_part_imp(MACRO_PROT_ARGS) |
|
if (body == n) |
if (body == n) |
break; |
break; |
|
|
if (n) { |
if (NULL == n && ! pwarn(mdoc, body->line, body->pos, WIMPBRK)) |
mdoc->last = body; |
return(0); |
mdoc->next = MDOC_NEXT_SIBLING; |
|
} |
|
|
|
|
if (n && ! rew_last(mdoc, body)) |
|
return(0); |
|
|
if (1 == ppos && ! append_delims(mdoc, line, pos, buf)) |
if (1 == ppos && ! append_delims(mdoc, line, pos, buf)) |
return(0); |
return(0); |
|
|
if (n) { |
if (n && ! rew_last(mdoc, blk)) |
mdoc->last = mdoc->last->parent; |
return(0); |
assert(mdoc->last == blk); |
|
mdoc->next = MDOC_NEXT_SIBLING; |
|
} |
|
return(1); |
return(1); |
} |
} |
|
|