version 1.76, 2009/03/21 09:42:07 |
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 236 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 1061 blk_part_imp(MACRO_PROT_ARGS) |
|
for (n = mdoc->last; n; n = n->parent) |
for (n = mdoc->last; n; n = n->parent) |
if (body == n) |
if (body == n) |
break; |
break; |
|
|
|
if (NULL == n && ! pwarn(mdoc, body->line, body->pos, WIMPBRK)) |
|
return(0); |
|
|
if (n && ! rew_last(mdoc, body)) |
if (n && ! rew_last(mdoc, body)) |
return(0); |
return(0); |