home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / sys / runtime / boost.c < prev    next >
C/C++ Source or Header  |  1999-06-08  |  1KB  |  46 lines

  1. /*
  2. -- This file is  free  software, which  comes  along  with  SmallEiffel. This
  3. -- software  is  distributed  in the hope that it will be useful, but WITHOUT 
  4. -- ANY  WARRANTY;  without  even  the  implied warranty of MERCHANTABILITY or
  5. -- FITNESS  FOR A PARTICULAR PURPOSE. You can modify it as you want, provided
  6. -- this header is kept unaltered, and a notification of the changes is added.
  7. -- You  are  allowed  to  redistribute  it and sell it, alone or as a part of 
  8. -- another product.
  9. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  10. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  11. --                       http://www.loria.fr/SmallEiffel
  12. --
  13. */
  14.  
  15. /*
  16.   This file (boost.c) is automatically included when `run_control.boost' is
  17.   true (ie. only for mode -boost).
  18. */
  19.  
  20. void se_print_run_time_stack (void) {
  21.   fprintf(SE_ERR,"Eiffel program crash at run time.\n");
  22.   fprintf(SE_ERR,"No trace when using option \"-boost\"\n");
  23. }
  24.  
  25. void sigrsp(int sig) {
  26.   printf("Received signal %d (man signal).\n",sig);
  27.   se_print_run_time_stack();
  28.   exit(1);
  29. }
  30.  
  31. /*
  32.  * SAS/C global variables. We raise the I/O buffer size because the
  33.  * default (512) causes poor performance. You can also force a larger
  34.  * default stack size (use sc Def STACKSIZE=xxx) which comes handy
  35.  * when using NoStackCheck.
  36.  */
  37.  
  38. #ifdef __SASC
  39. int __buffsize = 4096;
  40. #ifdef STACKSIZE
  41. int __stack = STACKSIZE;
  42. #else
  43. int __stack = 8192;
  44. #endif
  45. #endif
  46.