Commit 629b20e2 by Richard Stallman

(fancy_abort): New function.

From-SVN: r6072
parent 10b8b0ba
...@@ -27,6 +27,16 @@ int verbose = 0; ...@@ -27,6 +27,16 @@ int verbose = 0;
sstring linebuf; sstring linebuf;
/* Avoid error if config defines abort as fancy_abort.
It's not worth "really" implementing this because ordinary
compiler users never run fix-header. */
void
fancy_abort ()
{
abort ();
}
int int
main (argc, argv) main (argc, argv)
int argc; int argc;
...@@ -109,7 +119,7 @@ main (argc, argv) ...@@ -109,7 +119,7 @@ main (argc, argv)
/* NOTE: If you edit this, /* NOTE: If you edit this,
also edit lookup_std_proto in fix-header.c !! */ also edit lookup_std_proto in fix-header.c !! */
i = hash(name_start) % HASH_SIZE; i = hash (name_start) % HASH_SIZE;
i0 = i; i0 = i;
if (hash_tab[i] != 0) if (hash_tab[i] != 0)
{ {
...@@ -117,7 +127,7 @@ main (argc, argv) ...@@ -117,7 +127,7 @@ main (argc, argv)
{ {
i = (i+1) % HASH_SIZE; i = (i+1) % HASH_SIZE;
if (i == i0) if (i == i0)
abort(); abort ();
if (hash_tab[i] == 0) if (hash_tab[i] == 0)
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment