home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / ERROR.H < prev    next >
C/C++ Source or Header  |  1992-02-19  |  2KB  |  101 lines

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