Replace calls to abort() with calls to internal_error().

This commit is contained in:
Kevin Buettner
2001-02-25 04:45:12 +00:00
parent d95767bf85
commit e1e9e218c1
38 changed files with 123 additions and 74 deletions

View File

@@ -257,7 +257,7 @@ print_decimal (struct ui_file *stream, char *sign, int use_local,
sign, temp[2], temp[1], temp[0]);
break;
default:
abort ();
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
return;
}
@@ -360,7 +360,7 @@ print_longest (struct ui_file *stream, int format, int use_local,
fprintf_filtered (stream, local_hex_format_custom ("016ll"), val_long);
break;
default:
abort ();
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
#else /* !CC_HAS_LONG_LONG || !PRINTF_HAS_LONG_LONG */
/* In the following it is important to coerce (val_long) to a long. It does
@@ -407,7 +407,7 @@ print_longest (struct ui_file *stream, int format, int use_local,
(unsigned long) val_long);
break;
default:
abort ();
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
#endif /* CC_HAS_LONG_LONG || PRINTF_HAS_LONG_LONG */
}
@@ -467,7 +467,7 @@ strcat_longest (int format, int use_local, LONGEST val_long, char *buf,
sprintf (buf, local_hex_format_custom ("016ll"), val_long);
break;
default:
abort ();
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
#else /* !PRINTF_HAS_LONG_LONG */
/* In the following it is important to coerce (val_long) to a long. It does
@@ -508,7 +508,7 @@ strcat_longest (int format, int use_local, LONGEST val_long, char *buf,
((long) val_long));
break;
default:
abort ();
internal_error (__FILE__, __LINE__, "failed internal consistency check");
}
#endif /* !PRINTF_HAS_LONG_LONG */