version 1.12, 2009/06/12 09:18:00 |
version 1.15, 2009/07/06 09:21:24 |
|
|
|
|
#include "libmdoc.h" |
#include "libmdoc.h" |
|
|
/* FIXME: .Fl, .Ar, .Cd handling of `|'. */ |
|
|
|
enum mwarn { |
enum mwarn { |
WIGNE, |
WIGNE, |
WIMPBRK, |
WIMPBRK, |
Line 74 static int swarn(struct mdoc *, enum mdoc_type, int, |
|
Line 72 static int swarn(struct mdoc *, enum mdoc_type, int, |
|
/* Central table of library: who gets parsed how. */ |
/* Central table of library: who gets parsed how. */ |
|
|
const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
{ NULL, 0 }, /* \" */ |
{ in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Ap */ |
{ in_line_eoln, MDOC_PROLOGUE }, /* Dd */ |
{ in_line_eoln, MDOC_PROLOGUE }, /* Dd */ |
{ in_line_eoln, MDOC_PROLOGUE }, /* Dt */ |
{ in_line_eoln, MDOC_PROLOGUE }, /* Dt */ |
{ in_line_eoln, MDOC_PROLOGUE }, /* Os */ |
{ in_line_eoln, MDOC_PROLOGUE }, /* Os */ |
Line 181 const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
|
Line 179 const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
|
{ obsolete, 0 }, /* Fr */ |
{ obsolete, 0 }, /* Fr */ |
{ in_line_eoln, 0 }, /* Ud */ |
{ in_line_eoln, 0 }, /* Ud */ |
{ in_line_eoln, 0 }, /* Lb */ |
{ in_line_eoln, 0 }, /* Lb */ |
{ in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Ap */ |
|
{ in_line, 0 }, /* Lp */ |
{ in_line, 0 }, /* Lp */ |
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Lk */ |
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Lk */ |
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Mt */ |
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Mt */ |
Line 244 pwarn(struct mdoc *mdoc, int line, int pos, enum mwarn |
|
Line 241 pwarn(struct mdoc *mdoc, int line, int pos, enum mwarn |
|
break; |
break; |
} |
} |
assert(p); |
assert(p); |
return(mdoc_pwarn(mdoc, line, pos, WARN_SYNTAX, p)); |
return(mdoc_pwarn(mdoc, line, pos, p)); |
} |
} |
|
|
|
|
Line 289 swarn(struct mdoc *mdoc, enum mdoc_type type, |
|
Line 286 swarn(struct mdoc *mdoc, enum mdoc_type type, |
|
return(mdoc_perr(mdoc, line, pos, |
return(mdoc_perr(mdoc, line, pos, |
"%s scope breaks %s scope of %s", |
"%s scope breaks %s scope of %s", |
tt, t, n)); |
tt, t, n)); |
return(mdoc_pwarn(mdoc, line, pos, WARN_SYNTAX, |
return(mdoc_pwarn(mdoc, line, pos, |
"%s scope breaks %s scope of %s", |
"%s scope breaks %s scope of %s", |
tt, t, n)); |
tt, t, n)); |
} |
} |