From c275ef9482bcc0c59de8e8a6f139ba209b95d1c1 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 15 Feb 2004 00:19:29 +0000 Subject: [PATCH] Report elaboration errors without crashing. --- main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.cc b/main.cc index 82b831b98..25af426c0 100644 --- a/main.cc +++ b/main.cc @@ -19,7 +19,7 @@ const char COPYRIGHT[] = * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #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 # include "config.h" @@ -711,11 +711,14 @@ int main(int argc, char*argv[]) cerr << "***" << endl; } - return des->errors; + return des? des->errors : 1; } /* * $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 * Properly initialize vpi_module_list with system. *