version 1.46, 2010/07/20 14:56:42 |
version 1.50, 2010/10/11 15:45:36 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
#include <stdarg.h> |
#include <stdarg.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
#include <time.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
#include "libman.h" |
#include "libman.h" |
Line 83 static const struct man_valid man_valids[MAN_MAX] = { |
|
Line 84 static const struct man_valid man_valids[MAN_MAX] = { |
|
{ NULL, NULL }, /* I */ |
{ NULL, NULL }, /* I */ |
{ NULL, NULL }, /* IR */ |
{ NULL, NULL }, /* IR */ |
{ NULL, NULL }, /* RI */ |
{ NULL, NULL }, /* RI */ |
{ NULL, posts_eq0 }, /* na */ |
{ NULL, posts_eq0 }, /* na */ /* FIXME: should warn only. */ |
{ NULL, NULL }, /* i */ |
{ NULL, NULL }, /* i */ |
{ NULL, posts_le1 }, /* sp */ |
{ NULL, posts_le1 }, /* sp */ /* FIXME: should warn only. */ |
{ pres_bline, posts_eq0 }, /* nf */ |
{ pres_bline, posts_eq0 }, /* nf */ |
{ pres_bline, posts_eq0 }, /* fi */ |
{ pres_bline, posts_eq0 }, /* fi */ |
{ NULL, NULL }, /* r */ |
{ NULL, NULL }, /* r */ |
Line 94 static const struct man_valid man_valids[MAN_MAX] = { |
|
Line 95 static const struct man_valid man_valids[MAN_MAX] = { |
|
{ NULL, NULL }, /* DT */ |
{ NULL, NULL }, /* DT */ |
{ NULL, NULL }, /* UC */ |
{ NULL, NULL }, /* UC */ |
{ NULL, NULL }, /* PD */ |
{ NULL, NULL }, /* PD */ |
{ NULL, posts_le1 }, /* Sp */ |
{ NULL, posts_le1 }, /* Sp */ /* FIXME: should warn only. */ |
{ pres_bline, posts_le1 }, /* Vb */ |
{ pres_bline, posts_le1 }, /* Vb */ /* FIXME: should warn only. */ |
{ pres_bline, posts_eq0 }, /* Ve */ |
{ pres_bline, posts_eq0 }, /* Ve */ |
{ NULL, NULL }, /* AT */ |
{ NULL, NULL }, /* AT */ |
|
{ NULL, NULL }, /* in */ |
}; |
}; |
|
|
|
|
Line 232 check_text(CHKARGS) |
|
Line 234 check_text(CHKARGS) |
|
if (c) { |
if (c) { |
p += c - 1; |
p += c - 1; |
pos += c - 1; |
pos += c - 1; |
continue; |
} else |
} |
man_pmsg(m, n->line, pos, MANDOCERR_BADESCAPE); |
|
|
c = man_pmsg(m, n->line, pos, MANDOCERR_BADESCAPE); |
|
if ( ! (MAN_IGN_ESCAPE & m->pflags) && ! c) |
|
return(c); |
|
} |
} |
|
|
return(1); |
return(1); |