diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-15 16:24:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-15 16:24:37 +0000 |
commit | 619da5a7b0c931ea622bdd14c639e77e854f5ba1 (patch) | |
tree | d3dd14dbfee0e608080f6ca7729bfedd65fc0fec /mdoc.c | |
parent | a251336e2327592d09bff64e10e8e344a47a4374 (diff) | |
download | mandoc-619da5a7b0c931ea622bdd14c639e77e854f5ba1.tar.gz mandoc-619da5a7b0c931ea622bdd14c639e77e854f5ba1.tar.zst mandoc-619da5a7b0c931ea622bdd14c639e77e854f5ba1.zip |
LIBRARY can also occur in section 9.
All manual sections (unknown, 3p, 3f, etc.) correctly handled by -mdoc.
Useful warning printed if unknown manual section.
Checking for manual sections (e.g., LIBRARY) checks only first character, so 3p, 3f, etc. are free.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.132 2010/05/15 06:48:13 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.133 2010/05/15 16:24:37 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -68,7 +68,7 @@ const char *const __mdoc_merrnames[MERRMAX] = { "line arguments discouraged", /* ENOLINE */ "prologue macro out of conventional order", /* EPROLOOO */ "prologue macro repeated", /* EPROLREP */ - "invalid section", /* EBADSEC */ + "invalid manual section", /* EBADMSEC */ "invalid font mode", /* EFONT */ "invalid date syntax", /* EBADDATE */ "invalid number format", /* ENUMFMT */ @@ -190,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); } |