version 1.36, 2009/03/08 20:50:12 |
version 1.41, 2009/03/12 16:30:50 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <time.h> |
|
|
|
#include "private.h" |
#include "private.h" |
|
|
Line 60 static int post_dt(struct mdoc *); |
|
Line 59 static int post_dt(struct mdoc *); |
|
static int post_nm(struct mdoc *); |
static int post_nm(struct mdoc *); |
static int post_os(struct mdoc *); |
static int post_os(struct mdoc *); |
static int post_sh(struct mdoc *); |
static int post_sh(struct mdoc *); |
static int post_ex(struct mdoc *); |
static int post_std(struct mdoc *); |
static int post_prologue(struct mdoc *); |
static int post_prologue(struct mdoc *); |
|
|
const struct actions mdoc_actions[MDOC_MAX] = { |
const struct actions mdoc_actions[MDOC_MAX] = { |
Line 86 const struct actions mdoc_actions[MDOC_MAX] = { |
|
Line 85 const struct actions mdoc_actions[MDOC_MAX] = { |
|
{ NULL }, /* Dv */ |
{ NULL }, /* Dv */ |
{ NULL }, /* Er */ |
{ NULL }, /* Er */ |
{ NULL }, /* Ev */ |
{ NULL }, /* Ev */ |
{ post_ex }, /* Ex */ |
{ post_std }, /* Ex */ |
{ NULL }, /* Fa */ |
{ NULL }, /* Fa */ |
{ NULL }, /* Fd */ |
{ NULL }, /* Fd */ |
{ NULL }, /* Fl */ |
{ NULL }, /* Fl */ |
Line 100 const struct actions mdoc_actions[MDOC_MAX] = { |
|
Line 99 const struct actions mdoc_actions[MDOC_MAX] = { |
|
{ NULL }, /* Op */ |
{ NULL }, /* Op */ |
{ NULL }, /* Ot */ |
{ NULL }, /* Ot */ |
{ NULL }, /* Pa */ |
{ NULL }, /* Pa */ |
{ NULL }, /* Rv */ |
{ post_std }, /* Rv */ |
{ NULL }, /* St */ |
{ NULL }, /* St */ |
{ NULL }, /* Va */ |
{ NULL }, /* Va */ |
{ NULL }, /* Vt */ |
{ NULL }, /* Vt */ |
Line 172 const struct actions mdoc_actions[MDOC_MAX] = { |
|
Line 171 const struct actions mdoc_actions[MDOC_MAX] = { |
|
{ NULL }, /* Ud */ |
{ NULL }, /* Ud */ |
{ NULL }, /* Lb */ |
{ NULL }, /* Lb */ |
{ NULL }, /* Ap */ |
{ NULL }, /* Ap */ |
|
{ NULL }, /* Lp */ |
|
{ NULL }, /* Lk */ |
|
{ NULL }, /* Mt */ |
|
{ NULL }, /* Brq */ |
|
{ NULL }, /* Bro */ |
|
{ NULL }, /* Brc */ |
|
{ NULL }, /* %C */ |
}; |
}; |
|
|
|
|
Line 223 nwarn(struct mdoc *m, const struct mdoc_node *n, enum |
|
Line 229 nwarn(struct mdoc *m, const struct mdoc_node *n, enum |
|
|
|
|
|
static int |
static int |
post_ex(struct mdoc *mdoc) |
post_std(struct mdoc *mdoc) |
{ |
{ |
|
|
/* |
/* |
* If `.Ex -std' is invoked without an argument, fill it in with |
* If '-std' is invoked without an argument, fill it in with our |
* our name (if it's been set). |
* name (if it's been set). |
*/ |
*/ |
|
|
if (NULL == mdoc->last->args) |
if (NULL == mdoc->last->args) |