=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/read.c,v retrieving revision 1.27 retrieving revision 1.28 diff -c -r1.27 -r1.28 *** src/usr.bin/mandoc/read.c 2014/06/20 17:23:09 1.27 --- src/usr.bin/mandoc/read.c 2014/06/20 22:58:41 1.28 *************** *** 1,4 **** ! /* $Id: read.c,v 1.27 2014/06/20 17:23:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze --- 1,4 ---- ! /* $Id: read.c,v 1.28 2014/06/20 22:58:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze *************** *** 98,103 **** --- 98,105 ---- /* related to document structure */ ".so is fragile, better use ln(1)", + "no document body", + "content before the first section header", "NAME section must come first", "bad NAME section contents", "sections out of conventional order", *************** *** 196,202 **** "child violates parent syntax", "argument count wrong, violates syntax", "NOT IMPLEMENTED: .so with absolute path or \"..\"", - "no document body", "no document prologue", "static buffer exhausted", --- 198,203 ---- *************** *** 674,680 **** } if ( ! (curp->mdoc || curp->man || curp->sodest)) { ! mandoc_msg(MANDOCERR_NOTMANUAL, curp, 1, 0, NULL); curp->file_status = MANDOCLEVEL_FATAL; return; } --- 675,681 ---- } if ( ! (curp->mdoc || curp->man || curp->sodest)) { ! mandoc_msg(MANDOCERR_NOTMANUAL, curp, 0, 0, NULL); curp->file_status = MANDOCLEVEL_FATAL; return; }