version 1.35, 2010/05/17 10:50:32 |
version 1.36, 2010/05/17 22:11:42 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
|
#include "mandoc.h" |
#include "libman.h" |
#include "libman.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
|
|
Line 103 post_fi(struct man *m) |
|
Line 104 post_fi(struct man *m) |
|
{ |
{ |
|
|
if ( ! (MAN_LITERAL & m->flags)) |
if ( ! (MAN_LITERAL & m->flags)) |
if ( ! man_nwarn(m, m->last, WNLITERAL)) |
if ( ! man_nmsg(m, m->last, MANDOCERR_NOSCOPE)) |
return(0); |
return(0); |
m->flags &= ~MAN_LITERAL; |
m->flags &= ~MAN_LITERAL; |
return(1); |
return(1); |
Line 115 post_nf(struct man *m) |
|
Line 116 post_nf(struct man *m) |
|
{ |
{ |
|
|
if (MAN_LITERAL & m->flags) |
if (MAN_LITERAL & m->flags) |
if ( ! man_nwarn(m, m->last, WOLITERAL)) |
if ( ! man_nmsg(m, m->last, MANDOCERR_SCOPEREP)) |
return(0); |
return(0); |
m->flags |= MAN_LITERAL; |
m->flags |= MAN_LITERAL; |
return(1); |
return(1); |
Line 159 post_TH(struct man *m) |
|
Line 160 post_TH(struct man *m) |
|
m->meta.date = mandoc_a2time |
m->meta.date = mandoc_a2time |
(MTIME_ISO_8601, n->string); |
(MTIME_ISO_8601, n->string); |
if (0 == m->meta.date) { |
if (0 == m->meta.date) { |
if ( ! man_nwarn(m, n, WDATE)) |
if ( ! man_nmsg(m, n, MANDOCERR_BADDATE)) |
return(0); |
return(0); |
m->meta.date = time(NULL); |
m->meta.date = time(NULL); |
} |
} |