comparison 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
comparison
equal deleted inserted replaced
3161:2837d1701fd9 3162:7c96e85c76db
165 } 165 }
166 166
167 // Fix up things before exiting. 167 // Fix up things before exiting.
168 168
169 void 169 void
170 clean_up_and_exit (int retval) 170 clean_up_for_exit (void)
171 { 171 {
172 command_editor::restore_terminal_state (); 172 command_editor::restore_terminal_state ();
173 173
174 // XXX FIXME XXX -- is this needed? Can it cause any trouble? 174 // XXX FIXME XXX -- is this needed? Can it cause any trouble?
175 raw_mode (0); 175 raw_mode (0);
182 182
183 cleanup_tmp_files (); 183 cleanup_tmp_files ();
184 184
185 if (!quitting_gracefully && (interactive || forced_interactive)) 185 if (!quitting_gracefully && (interactive || forced_interactive))
186 cout << "\n"; 186 cout << "\n";
187 187 }
188 if (retval == EOF) 188
189 retval = 0; 189 void
190 190 clean_up_and_exit (int retval)
191 exit (retval); 191 {
192 192 clean_up_for_exit ();
193 // This is bogus but should prevent g++ from giving a warning saying 193
194 // that this volatile function does return. 194 exit (retval == EOF ? 0 : retval);
195
196 panic_impossible ();
197 } 195 }
198 196
199 DEFUN_TEXT (casesen, args, , 197 DEFUN_TEXT (casesen, args, ,
200 "casesen [on|off]") 198 "casesen [on|off]")
201 { 199 {