Changeset 8de3388 in git for kernel/misc.cc


Ignore:
Timestamp:
Jul 15, 2010, 4:49:04 PM (14 years ago)
Author:
Andreas Steenpaß <steenpas@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1dba075fdedd6b7fdac018f3b79cfab9ba2a2e52
Parents:
6263f270b03890e5e7d11a4d6e8a10544a454c92
Message:

M    kernel/misc.cc
M    Singular/misc_ip.cc
automatically closes all links on exit


git-svn-id: file:///usr/local/Singular/svn/trunk@13019 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/misc.cc

    r6263f2 r8de3388  
    4949
    5050/*0 implementation*/
    51 
    52 /*2
    53 * the global exit routine of Singular
    54 */
    55 #ifdef HAVE_MPSR
    56 void (*MP_Exit_Env_Ptr)()=NULL;
    57 #endif
    58 extern "C" {
    59 
    60 void m2_end(int i)
    61 {
    62   fe_reset_input_mode();
    63   #ifdef PAGE_TEST
    64   mmEndStat();
    65   #endif
    66   #ifdef HAVE_TCL
    67   if (tclmode)
    68   {
    69     PrintTCL('Q',0,NULL);
    70   }
    71   #endif
    72   fe_reset_input_mode();
    73   if (i<=0)
    74   {
    75     #ifdef HAVE_TCL
    76     if (!tclmode)
    77     #endif
    78       if (TEST_V_QUIET)
    79       {
    80         if (i==0)
    81           printf("Auf Wiedersehen.\n");
    82         else
    83           printf("\n$Bye.\n");
    84       }
    85     //#ifdef sun
    86     //  #ifndef __svr4__
    87     //    _cleanup();
    88     //    _exit(0);
    89     //  #endif
    90     //#endif
    91     exit(0);
    92   }
    93   else
    94   {
    95     #ifdef HAVE_TCL
    96     if (!tclmode)
    97     #endif
    98       printf("\nhalt %d\n",i);
    99   }
    100   #ifdef HAVE_MPSR
    101   if (MP_Exit_Env_Ptr!=NULL) (*MP_Exit_Env_Ptr)();
    102   #endif
    103   exit(i);
    104 }
    105 }
    10651
    10752/*2
Note: See TracChangeset for help on using the changeset viewer.