Changeset 8de3388 in git for kernel/misc.cc
- Timestamp:
- Jul 15, 2010, 4:49:04 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 1dba075fdedd6b7fdac018f3b79cfab9ba2a2e52
- Parents:
- 6263f270b03890e5e7d11a4d6e8a10544a454c92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/misc.cc
r6263f2 r8de3388 49 49 50 50 /*0 implementation*/ 51 52 /*253 * the global exit routine of Singular54 */55 #ifdef HAVE_MPSR56 void (*MP_Exit_Env_Ptr)()=NULL;57 #endif58 extern "C" {59 60 void m2_end(int i)61 {62 fe_reset_input_mode();63 #ifdef PAGE_TEST64 mmEndStat();65 #endif66 #ifdef HAVE_TCL67 if (tclmode)68 {69 PrintTCL('Q',0,NULL);70 }71 #endif72 fe_reset_input_mode();73 if (i<=0)74 {75 #ifdef HAVE_TCL76 if (!tclmode)77 #endif78 if (TEST_V_QUIET)79 {80 if (i==0)81 printf("Auf Wiedersehen.\n");82 else83 printf("\n$Bye.\n");84 }85 //#ifdef sun86 // #ifndef __svr4__87 // _cleanup();88 // _exit(0);89 // #endif90 //#endif91 exit(0);92 }93 else94 {95 #ifdef HAVE_TCL96 if (!tclmode)97 #endif98 printf("\nhalt %d\n",i);99 }100 #ifdef HAVE_MPSR101 if (MP_Exit_Env_Ptr!=NULL) (*MP_Exit_Env_Ptr)();102 #endif103 exit(i);104 }105 }106 51 107 52 /*2
Note: See TracChangeset
for help on using the changeset viewer.