=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- mandoc/read.c 2011/03/22 09:50:11 1.5 +++ mandoc/read.c 2011/03/22 10:35:26 1.6 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.5 2011/03/22 09:50:11 kristaps Exp $ */ +/* $Id: read.c,v 1.6 2011/03/22 10:35:26 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -496,16 +496,11 @@ mparse_end(struct mparse *curp) return; } -#if 0 - /* FIXME: NOTE a parser may not have been assigned, yet. */ - if ( ! (curp->man || curp->mdoc)) { - /* FIXME: make into an mandoc.h error. */ - fprintf(stderr, "%s: Not a manual\n", curp->file); + mandoc_msg(MANDOCERR_NOTMANUAL, curp, 1, 0, NULL); curp->file_status = MANDOCLEVEL_FATAL; - goto cleanup; + return; } -#endif roff_endparse(curp->roff); }