version 1.81, 2018/12/18 21:58:41 |
version 1.82, 2018/12/30 00:48:47 |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
#include "roff.h" |
#include "roff.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
|
#include "roff_int.h" |
|
|
static int a2time(time_t *, const char *, const char *); |
static int a2time(time_t *, const char *, const char *); |
static char *time2a(time_t); |
static char *time2a(time_t); |
|
|
mandoc_msg(MANDOCERR_DATE_BAD, ln, pos, "%s", in); |
mandoc_msg(MANDOCERR_DATE_BAD, ln, pos, "%s", in); |
else if (t > time(NULL) + 86400) |
else if (t > time(NULL) + 86400) |
mandoc_msg(MANDOCERR_DATE_FUTURE, ln, pos, "%s", in); |
mandoc_msg(MANDOCERR_DATE_FUTURE, ln, pos, "%s", in); |
else if (man->macroset == MACROSET_MDOC) |
else if (man->meta.macroset == MACROSET_MDOC) |
mandoc_msg(MANDOCERR_DATE_LEGACY, ln, pos, "Dd %s", in); |
mandoc_msg(MANDOCERR_DATE_LEGACY, ln, pos, "Dd %s", in); |
|
|
/* Use any non-mdoc(7) date verbatim. */ |
/* Use any non-mdoc(7) date verbatim. */ |