=================================================================== RCS file: /cvs/mandoc/mdoc.c,v retrieving revision 1.130 retrieving revision 1.134 diff -u -p -r1.130 -r1.134 --- mandoc/mdoc.c 2010/05/13 06:22:11 1.130 +++ mandoc/mdoc.c 2010/05/16 00:04:46 1.134 @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.130 2010/05/13 06:22:11 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.134 2010/05/16 00:04:46 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -69,7 +69,6 @@ const char *const __mdoc_merrnames[MERRMAX] = { "prologue macro out of conventional order", /* EPROLOOO */ "prologue macro repeated", /* EPROLREP */ "invalid manual section", /* EBADMSEC */ - "invalid section", /* EBADSEC */ "invalid font mode", /* EFONT */ "invalid date syntax", /* EBADDATE */ "invalid number format", /* ENUMFMT */ @@ -191,6 +190,8 @@ mdoc_free1(struct mdoc *mdoc) free(mdoc->meta.arch); if (mdoc->meta.vol) free(mdoc->meta.vol); + if (mdoc->meta.msec) + free(mdoc->meta.msec); } @@ -290,7 +291,7 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf) return(0); m->flags |= MDOC_NEWLINE; - return('.' == *buf ? + return(('.' == *buf || '\'' == *buf) ? mdoc_pmacro(m, ln, buf) : mdoc_ptext(m, ln, buf)); } @@ -701,6 +702,8 @@ mdoc_ptext(struct mdoc *m, int line, char *buf) * EOS character, then flag the node as being the end of a * sentence. The front-end will know how to interpret this. */ + + /* FIXME: chain of close delims. */ assert(i);