version 1.41, 2009/03/12 16:30:50 |
version 1.43, 2009/03/16 23:37:28 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org> |
* |
* |
* 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 |
* purpose with or without fee is hereby granted, provided that the |
Line 62 static int post_sh(struct mdoc *); |
|
Line 62 static int post_sh(struct mdoc *); |
|
static int post_std(struct mdoc *); |
static int post_std(struct mdoc *); |
static int post_prologue(struct mdoc *); |
static int post_prologue(struct mdoc *); |
|
|
|
#define merr(m, t) nerr((m), (m)->last, (t)) |
|
#define mwarn(m, t) nwarn((m), (m)->last, (t)) |
|
|
const struct actions mdoc_actions[MDOC_MAX] = { |
const struct actions mdoc_actions[MDOC_MAX] = { |
{ NULL }, /* \" */ |
{ NULL }, /* \" */ |
{ post_dd }, /* Dd */ |
{ post_dd }, /* Dd */ |
Line 178 const struct actions mdoc_actions[MDOC_MAX] = { |
|
Line 181 const struct actions mdoc_actions[MDOC_MAX] = { |
|
{ NULL }, /* Bro */ |
{ NULL }, /* Bro */ |
{ NULL }, /* Brc */ |
{ NULL }, /* Brc */ |
{ NULL }, /* %C */ |
{ NULL }, /* %C */ |
|
{ NULL }, /* Es */ |
|
{ NULL }, /* En */ |
|
{ NULL }, /* Dx */ |
}; |
}; |
|
|
|
|
#define merr(m, t) nerr((m), (m)->last, (t)) |
|
static int |
static int |
nerr(struct mdoc *m, const struct mdoc_node *n, enum merr type) |
nerr(struct mdoc *m, const struct mdoc_node *n, enum merr type) |
{ |
{ |
Line 200 nerr(struct mdoc *m, const struct mdoc_node *n, enum m |
|
Line 205 nerr(struct mdoc *m, const struct mdoc_node *n, enum m |
|
} |
} |
|
|
|
|
#define mwarn(m, t) nwarn((m), (m)->last, (t)) |
|
static int |
static int |
nwarn(struct mdoc *m, const struct mdoc_node *n, enum mwarn type) |
nwarn(struct mdoc *m, const struct mdoc_node *n, enum mwarn type) |
{ |
{ |