version 1.31, 2010/05/15 15:54:39 |
version 1.34, 2010/05/15 22:44:04 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2008, 2009 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 |
|
|
}; |
}; |
|
|
static int post_TH(struct man *); |
static int post_TH(struct man *); |
static int post_de(struct man *); |
|
static int post_fi(struct man *); |
static int post_fi(struct man *); |
static int post_nf(struct man *); |
static int post_nf(struct man *); |
|
|
Line 70 const struct actions man_actions[MAN_MAX] = { |
|
Line 69 const struct actions man_actions[MAN_MAX] = { |
|
{ NULL }, /* Sp */ |
{ NULL }, /* Sp */ |
{ post_nf }, /* Vb */ |
{ post_nf }, /* Vb */ |
{ post_fi }, /* Ve */ |
{ post_fi }, /* Ve */ |
{ post_de }, /* de */ |
|
{ post_de }, /* dei */ |
|
{ post_de }, /* am */ |
|
{ post_de }, /* ami */ |
|
{ post_de }, /* ig */ |
|
{ NULL }, /* . */ |
|
}; |
}; |
|
|
|
|
Line 115 post_fi(struct man *m) |
|
Line 108 post_fi(struct man *m) |
|
|
|
|
|
static int |
static int |
post_de(struct man *m) |
|
{ |
|
|
|
/* |
|
* XXX: for the time being, we indiscriminately remove roff |
|
* instructions from the parse stream. |
|
*/ |
|
if (MAN_BLOCK == m->last->type) |
|
man_node_delete(m, m->last); |
|
return(1); |
|
} |
|
|
|
|
|
static int |
|
post_nf(struct man *m) |
post_nf(struct man *m) |
{ |
{ |
|
|
Line 151 post_TH(struct man *m) |
|
Line 130 post_TH(struct man *m) |
|
free(m->meta.vol); |
free(m->meta.vol); |
if (m->meta.source) |
if (m->meta.source) |
free(m->meta.source); |
free(m->meta.source); |
|
if (m->meta.msec) |
|
free(m->meta.msec); |
|
|
m->meta.title = m->meta.vol = |
m->meta.title = m->meta.vol = |
m->meta.msec = m->meta.source = NULL; |
m->meta.msec = m->meta.source = NULL; |