diff src/toplev.cc @ 3162:7c96e85c76db

[project @ 1998-04-08 18:19:35 by jwe]
author jwe
date Wed, 08 Apr 1998 18:21:04 +0000
parents 894d516b4a00
children c17387059fd3
line wrap: on
line diff
--- a/src/toplev.cc	Mon Mar 02 06:27:23 1998 +0000
+++ b/src/toplev.cc	Wed Apr 08 18:21:04 1998 +0000
@@ -167,7 +167,7 @@
 // Fix up things before exiting.
 
 void
-clean_up_and_exit (int retval)
+clean_up_for_exit (void)
 {
   command_editor::restore_terminal_state ();
 
@@ -184,16 +184,14 @@
 
   if (!quitting_gracefully && (interactive || forced_interactive))
     cout << "\n";
-
-  if (retval == EOF)
-    retval = 0;
+}
 
-  exit (retval);
+void
+clean_up_and_exit (int retval)
+{
+  clean_up_for_exit ();
 
-  // This is bogus but should prevent g++ from giving a warning saying
-  // that this volatile function does return.
-
-  panic_impossible ();
+  exit (retval == EOF ? 0 : retval);
 }
 
 DEFUN_TEXT (casesen, args, ,