home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / Tex29 / StTeXsrc.zoo / src / error.h < prev    next >
C/C++ Source or Header  |  1988-03-13  |  2KB  |  102 lines

  1.  
  2. /*
  3.  * @(#)error.h 2.6 EPA
  4.  *
  5.  * Copyright 1987,1988 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  * 
  11.  */
  12.  
  13. #define BATCH_MODE              0
  14. #define NONSTOP_MODE            1
  15. #define SCROLL_MODE             2
  16. #define ERROR_STOP_MODE         3
  17.  
  18. #define wake_up_terminal()
  19.  
  20. global  int     old_setting;
  21.  
  22. int     begin_diagnostic();
  23. int     end_diagnostic();
  24.  
  25. int     print_err();
  26.  
  27. global  int     interaction;
  28. global  bool    deletions_allowed;
  29. global  int     history;
  30. global  int     error_count;
  31.  
  32. #ifndef NOHELP 
  33. #define help0() \
  34.     {help_ptr = 0;}
  35.  
  36. #define help1(h0) \
  37.     {help_ptr = 1; help_line[0] = h0;}
  38.  
  39. #define help2(h0, h1) \
  40.     {help_ptr = 2; \
  41.     help_line[0] = h0; help_line[1] = h1;}
  42.  
  43. #define help3(h0, h1, h2) \
  44.     {help_ptr = 3; help_line[0] = h0; \
  45.     help_line[1] = h1; help_line[2] = h2;}
  46.  
  47. #define help4(h0, h1, h2, h3) \
  48.     {help_ptr = 4; \
  49.     help_line[0] = h0; help_line[1] = h1; \
  50.     help_line[2] = h2; help_line[3] = h3;}
  51.  
  52. #define help5(h0, h1, h2, h3, h4) \
  53.     {help_ptr = 5; help_line[0] = h0; \
  54.     help_line[1] = h1; help_line[2] = h2; \
  55.     help_line[3] = h3; help_line[4] = h4;}
  56.  
  57. #define help6(h0, h1, h2, h3, h4, h5) \
  58.     {help_ptr = 6; \
  59.     help_line[0] = h0; help_line[1] = h1; \
  60.     help_line[2] = h2; help_line[3] = h3; \
  61.     help_line[4] = h4; help_line[5] = h5;}
  62. #else
  63. #define help0()
  64. #define help1(h0)
  65. #define help2(h0, h1)
  66. #define help3(h0, h1, h2)
  67. #define help4(h0, h1, h2, h3)
  68. #define help5(h0, h1, h2, h3, h4) 
  69. #define help6(h0, h1, h2, h3, h4, h5)
  70. #endif
  71.  
  72. global  chrs        help_line[];
  73. global  ptr         help_ptr;
  74. global  bool        use_err_help;
  75.  
  76. int     jump_out();
  77. int     error();
  78. int     int_error();
  79. int     normalize_selector();
  80.  
  81. #define succumb() \
  82.     {if (interaction == ERROR_STOP_MODE) \
  83.         interaction = SCROLL_MODE; \
  84.     error(); history = FATAL_ERROR_STOP; jump_out();}
  85.  
  86. #define SPOTLESS                0
  87. #define WARNING_ISSUED          1
  88. #define ERROR_MESSAGE_ISSUED    2
  89. #define FATAL_ERROR_STOP        3
  90.  
  91. int     fatal_error();
  92. int     overflow();
  93. int     confusion();
  94.  
  95. global  int     interrupt;
  96. global  bool    OK_to_interrupt;
  97.  
  98. #define check_interrupt() \
  99.     {if (interrupt != 0) pause_for_instructions();}
  100.  
  101. int     pause_for_instructions();
  102.