]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/comp_error.c
ncurses 5.0
[ncurses.git] / ncurses / tinfo / comp_error.c
similarity index 93%
rename from ncurses/comp_error.c
rename to ncurses/tinfo/comp_error.c
index 8517e9a3d57df547fb8540a113273e94b5a39a50..2b2d503013c09a4a09996fc5678f6e32c9e54b78 100644 (file)
@@ -41,7 +41,7 @@
 
 #include <tic.h>
 
-MODULE_ID("$Id: comp_error.c,v 1.14 1998/02/11 12:13:53 tom Exp $")
+MODULE_ID("$Id: comp_error.c,v 1.16 1998/08/01 23:39:51 tom Exp $")
 
 bool   _nc_suppress_warnings;
 int    _nc_curr_line;          /* current line # in input */
@@ -118,5 +118,15 @@ va_list argp;
        vfprintf (stderr, fmt, argp);
        fprintf (stderr, "\n");
        va_end(argp);
+
+       /* If we're debugging, try to show where the problem occurred - this
+        * will dump core.
+        */
+#if defined(TRACE) || !defined(NDEBUG)
        abort();
+#else
+       /* Dumping core in production code is not a good idea.
+        */
+       exit(EXIT_FAILURE);
+#endif
 }