version 1.67, 2010/05/15 18:35:14 |
version 1.70, 2010/05/15 20:51:40 |
Line 76 const struct roffmac roffs[ROFF_MAX] = { |
|
Line 76 const struct roffmac roffs[ROFF_MAX] = { |
|
{ ".", NULL, roff_new_close }, |
{ ".", NULL, roff_new_close }, |
}; |
}; |
|
|
static void roff_alloc1(struct roff *); |
|
static void roff_free1(struct roff *); |
static void roff_free1(struct roff *); |
static enum rofft roff_hash_find(const char *); |
static enum rofft roff_hash_find(const char *); |
static int roffnode_push(struct roff *, |
static int roffnode_push(struct roff *, |
Line 153 roff_free1(struct roff *r) |
|
Line 152 roff_free1(struct roff *r) |
|
} |
} |
|
|
|
|
static void |
|
roff_alloc1(struct roff *r) |
|
{ |
|
|
|
memset(r, 0, sizeof(struct roff)); |
|
} |
|
|
|
|
|
void |
void |
roff_reset(struct roff *r) |
roff_reset(struct roff *r) |
{ |
{ |
|
|
roff_free1(r); |
roff_free1(r); |
roff_alloc1(r); |
|
} |
} |
|
|
|
|
Line 301 static enum rofferr |
|
Line 291 static enum rofferr |
|
roff_new_close(ROFF_ARGS) |
roff_new_close(ROFF_ARGS) |
{ |
{ |
|
|
|
/* |
if ( ! (*r->msg)(MANDOCERR_NOSCOPE, r->data, ln, ppos, NULL)) |
if ( ! (*r->msg)(MANDOCERR_NOSCOPE, r->data, ln, ppos, NULL)) |
return(ROFF_ERR); |
return(ROFF_ERR); |
|
*/ |
return(ROFF_IGN); |
return(ROFF_IGN); |
} |
} |
|
|