version 1.26, 2010/03/22 14:03:03 |
version 1.30, 2010/03/27 10:04:56 |
|
|
#include "config.h" |
#include "config.h" |
#endif |
#endif |
|
|
#include <sys/utsname.h> |
|
|
|
#include <assert.h> |
#include <assert.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
}; |
}; |
|
|
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 68 const struct actions man_actions[MAN_MAX] = { |
|
Line 67 const struct actions man_actions[MAN_MAX] = { |
|
{ NULL }, /* DT */ |
{ NULL }, /* DT */ |
{ NULL }, /* UC */ |
{ NULL }, /* UC */ |
{ NULL }, /* PD */ |
{ NULL }, /* PD */ |
|
{ NULL }, /* Sp */ |
|
{ post_nf }, /* Vb */ |
|
{ post_fi }, /* Ve */ |
|
{ post_de }, /* de */ |
|
{ post_de }, /* dei */ |
|
{ post_de }, /* am */ |
|
{ post_de }, /* ami */ |
|
{ post_de }, /* ig */ |
|
{ NULL }, /* . */ |
}; |
}; |
|
|
|
|
Line 107 post_fi(struct man *m) |
|
Line 115 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 178 post_TH(struct man *m) |
|
Line 200 post_TH(struct man *m) |
|
if (n && (n = n->next)) |
if (n && (n = n->next)) |
m->meta.vol = mandoc_strdup(n->string); |
m->meta.vol = mandoc_strdup(n->string); |
|
|
n = m->last; |
/* |
man_node_unlink(m, n); |
* Remove the `TH' node after we've processed it for our |
man_node_freelist(n); |
* meta-data. |
|
*/ |
|
man_node_delete(m, m->last); |
return(1); |
return(1); |
} |
} |