version 1.5, 2009/03/26 14:38:11 |
version 1.9, 2009/04/05 16:34:22 |
|
|
#include <sys/utsname.h> |
#include <sys/utsname.h> |
|
|
#include <assert.h> |
#include <assert.h> |
#include <err.h> |
|
#include <errno.h> |
#include <errno.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
Line 61 const struct actions man_actions[MAN_MAX] = { |
|
Line 59 const struct actions man_actions[MAN_MAX] = { |
|
{ NULL }, /* I */ |
{ NULL }, /* I */ |
{ NULL }, /* IR */ |
{ NULL }, /* IR */ |
{ NULL }, /* RI */ |
{ NULL }, /* RI */ |
|
{ NULL }, /* br */ |
|
{ NULL }, /* na */ |
|
{ NULL }, /* i */ |
}; |
}; |
|
|
|
|
Line 110 post_TH(struct man *m) |
|
Line 111 post_TH(struct man *m) |
|
assert(n); |
assert(n); |
|
|
if (NULL == (m->meta.title = strdup(n->string))) |
if (NULL == (m->meta.title = strdup(n->string))) |
return(man_verr(m, n->line, n->pos, "malloc")); |
return(man_verr(m, n->line, n->pos, |
|
"memory exhausted")); |
|
|
/* TITLE ->MSEC<- DATE SOURCE VOL */ |
/* TITLE ->MSEC<- DATE SOURCE VOL */ |
|
|
Line 138 post_TH(struct man *m) |
|
Line 140 post_TH(struct man *m) |
|
|
|
if (n && (n = n->next)) |
if (n && (n = n->next)) |
if (NULL == (m->meta.source = strdup(n->string))) |
if (NULL == (m->meta.source = strdup(n->string))) |
return(man_verr(m, n->line, n->pos, "malloc")); |
return(man_verr(m, n->line, n->pos, |
|
"memory exhausted")); |
|
|
/* TITLE MSEC DATE SOURCE ->VOL<- */ |
/* TITLE MSEC DATE SOURCE ->VOL<- */ |
|
|
if (n && (n = n->next)) |
if (n && (n = n->next)) |
if (NULL == (m->meta.vol = strdup(n->string))) |
if (NULL == (m->meta.vol = strdup(n->string))) |
return(man_verr(m, n->line, n->pos, "malloc")); |
return(man_verr(m, n->line, n->pos, |
|
"memory exhausted")); |
|
|
/* |
/* |
* The end document shouldn't have the prologue macros as part |
* The end document shouldn't have the prologue macros as part |