CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2010/09/26 14:19:58
Modified files: usr.bin/mandoc : main.c mandoc.h mdoc_macro.c Log message: If an explicit scope is still open at the end of an input file, report an ERROR: We can still render the page by just closing the open scope, but it is likely that information will be missing or document structure mangled. Before, man(7) only reported a WARNING (which is dangerous because we cannot be sure rendering is correct) and mdoc(7) ran into FATAL (which is too drastic, there is no reason not to show what we have). While here, add a few explicit casts to appease lint. "looks good" kristaps@