Fatal().
svn path=/trunk/yasm/; revision=158
AC_TYPE_SIZE_T
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(memcpy toascii)
+AC_CHECK_FUNCS(memcpy toascii abort)
AC_REPLACE_FUNCS(strdup strtoul)
AC_CHECK_HEADERS(limits.h sys/queue.h sys/cdefs.h)
AC_TYPE_SIZE_T
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(memcpy toascii)
+AC_CHECK_FUNCS(memcpy toascii abort)
AC_REPLACE_FUNCS(strdup strtoul)
AC_CHECK_HEADERS(limits.h sys/queue.h sys/cdefs.h)
-/* $Id: errwarn.c,v 1.23 2001/08/30 03:45:26 peter Exp $
+/* $Id: errwarn.c,v 1.24 2001/09/16 05:39:35 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
#include "globals.h"
#include "errwarn.h"
-RCSID("$Id: errwarn.c,v 1.23 2001/08/30 03:45:26 peter Exp $");
+RCSID("$Id: errwarn.c,v 1.24 2001/09/16 05:39:35 peter Exp $");
/* Total error count for entire assembler run.
* Assembler should exit with EXIT_FAILURE if this is >= 0 on finish. */
{
fprintf(stderr, _("INTERNAL ERROR at %s, line %d: %s\n"), file, line,
message);
+#ifdef HAVE_ABORT
+ abort();
+#else
exit(EXIT_FAILURE);
+#endif
}
/* Report a fatal error. These are unrecoverable (such as running out of
Fatal(fatal_num num)
{
fprintf(stderr, "%s %s\n", _("FATAL:"), gettext(fatal_msgs[num]));
+#ifdef HAVE_ABORT
+ abort();
+#else
exit(EXIT_FAILURE);
+#endif
}
/* Register an error. Uses argtypes as described above to specify the
-/* $Id: errwarn.c,v 1.23 2001/08/30 03:45:26 peter Exp $
+/* $Id: errwarn.c,v 1.24 2001/09/16 05:39:35 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
#include "globals.h"
#include "errwarn.h"
-RCSID("$Id: errwarn.c,v 1.23 2001/08/30 03:45:26 peter Exp $");
+RCSID("$Id: errwarn.c,v 1.24 2001/09/16 05:39:35 peter Exp $");
/* Total error count for entire assembler run.
* Assembler should exit with EXIT_FAILURE if this is >= 0 on finish. */
{
fprintf(stderr, _("INTERNAL ERROR at %s, line %d: %s\n"), file, line,
message);
+#ifdef HAVE_ABORT
+ abort();
+#else
exit(EXIT_FAILURE);
+#endif
}
/* Report a fatal error. These are unrecoverable (such as running out of
Fatal(fatal_num num)
{
fprintf(stderr, "%s %s\n", _("FATAL:"), gettext(fatal_msgs[num]));
+#ifdef HAVE_ABORT
+ abort();
+#else
exit(EXIT_FAILURE);
+#endif
}
/* Register an error. Uses argtypes as described above to specify the