=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.67 retrieving revision 1.70 diff -u -p -r1.67 -r1.70 --- mandoc/roff.c 2010/05/15 18:35:14 1.67 +++ mandoc/roff.c 2010/05/15 20:51:40 1.70 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.67 2010/05/15 18:35:14 kristaps Exp $ */ +/* $Id: roff.c,v 1.70 2010/05/15 20:51:40 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons * @@ -76,7 +76,6 @@ const struct roffmac roffs[ROFF_MAX] = { { ".", NULL, roff_new_close }, }; -static void roff_alloc1(struct roff *); static void roff_free1(struct roff *); static enum rofft roff_hash_find(const char *); static int roffnode_push(struct roff *, @@ -153,20 +152,11 @@ roff_free1(struct roff *r) } -static void -roff_alloc1(struct roff *r) -{ - - memset(r, 0, sizeof(struct roff)); -} - - void roff_reset(struct roff *r) { roff_free1(r); - roff_alloc1(r); } @@ -301,8 +291,10 @@ static enum rofferr roff_new_close(ROFF_ARGS) { + /* if ( ! (*r->msg)(MANDOCERR_NOSCOPE, r->data, ln, ppos, NULL)) return(ROFF_ERR); + */ return(ROFF_IGN); }