Report elaboration errors without crashing.

This commit is contained in:
steve 2004-02-15 00:19:29 +00:00
parent 8188c4c690
commit c275ef9482
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ const char COPYRIGHT[] =
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CVS_IDENT #ifdef HAVE_CVS_IDENT
#ident "$Id: main.cc,v 1.79 2003/11/26 01:37:14 steve Exp $" #ident "$Id: main.cc,v 1.80 2004/02/15 00:19:29 steve Exp $"
#endif #endif
# include "config.h" # include "config.h"
@ -711,11 +711,14 @@ int main(int argc, char*argv[])
cerr << "***" << endl; cerr << "***" << endl;
} }
return des->errors; return des? des->errors : 1;
} }
/* /*
* $Log: main.cc,v $ * $Log: main.cc,v $
* Revision 1.80 2004/02/15 00:19:29 steve
* Report elaboration errors without crashing.
*
* Revision 1.79 2003/11/26 01:37:14 steve * Revision 1.79 2003/11/26 01:37:14 steve
* Properly initialize vpi_module_list with system. * Properly initialize vpi_module_list with system.
* *