home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / brfexmacro.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-04  |  4.6 KB  |  159 lines

  1. /* $XConsortium: brfexmacro.h,v 5.2 91/04/04 13:32:56 gildea Exp $ */
  2.  
  3. /*--------------------------------------------------------------------*\
  4. |
  5. |  Copyright (C) 1989,1990, 1991, National Computer Graphics Association
  6. |
  7. |  Permission is granted to any individual or institution to use, copy, or
  8. |  redistribute this software so long as it is not sold for profit, provided
  9. |  this copyright notice is retained.
  10. |
  11. |                         Developed for the
  12. |                National Computer Graphics Association
  13. |                         2722 Merrilee Drive
  14. |                         Fairfax, VA  22031
  15. |                           (703) 698-9600
  16. |
  17. |                                by
  18. |                 SimGraphics Engineering Corporation
  19. |                    1137 Huntington Drive  Unit A
  20. |                      South Pasadena, CA  91030
  21. |                           (213) 255-0900
  22. |---------------------------------------------------------------------
  23. |
  24. | Author        :    mfr / SimGraphics Engineering Corportation
  25. |
  26. | File          :    brfexception.h
  27. | Date        :    Sun Feb 11 00:41:57 PST 1990
  28. | Project       :    PLB
  29. |
  30. | Description    :    Exception handler macro defines
  31. |
  32. | Status        :    Version 1.0
  33. |
  34. | Revisions     :    
  35. |
  36. \*--------------------------------------------------------------------*/
  37.  
  38.  
  39. #define INIT_LIST(item)\
  40. {\
  41.         brf_exception[item].brf_ex_type = NULL;\
  42.         brf_exception[item].brf_ex_flag = BRF_OK;\
  43.         brf_exception[item].brf_ex_optional[VCOLORT] = NULL;\
  44.         brf_exception[item].brf_ex_optional[VCOLORI] = NULL;\
  45.         brf_exception[item].brf_ex_optional[VNORM] = NULL;\
  46.         brf_exception[item].brf_ex_optional[FCOLORT] = NULL;\
  47.         brf_exception[item].brf_ex_optional[FCOLORI] = NULL;\
  48.         brf_exception[item].brf_ex_optional[FNORM] = NULL;\
  49.         brf_exception[item].brf_ex_optional[EDATA] = NULL;\
  50.         brf_exception[item].brf_ex_range[RANGESTART] = NO_RANGE_DATA;\
  51.         brf_exception[item].brf_ex_range[RANGESTOP] = NO_RANGE_DATA;\
  52.         brf_exception[item].brf_ex_rrange[RANGESTART] = NO_RANGE_DATA;\
  53.         brf_exception[item].brf_ex_rrange[RANGESTOP] = NO_RANGE_DATA;\
  54.         brf_exception[item].brf_ex_custom_handler = NULL;\
  55.         brf_exception[item].brf_ex_message = "This Space For Rent\n";\
  56.         brf_exception[item].brf_ex_logic = TRUE;\
  57.         brf_exception[item].brf_ex_numhits = 0;\
  58. }
  59.  
  60.  
  61. #define LIST_NONSUP(a,b,c)\
  62. {\
  63. INIT_LIST(listptr);\
  64. brf_exception[listptr].brf_ex_type = a ;\
  65. brf_exception[listptr].brf_ex_flag = b ;\
  66. brf_exception[listptr].brf_ex_message = c ;\
  67.         listptr++;\
  68. }
  69.  
  70.  
  71.  
  72. #define LIST_OPTIONAL(a,b,c,d,e)\
  73. {\
  74. INIT_LIST(listptr);\
  75. brf_exception[listptr].brf_ex_type = a ;\
  76. brf_exception[listptr].brf_ex_flag = b ;\
  77. brf_exception[listptr].brf_ex_optional[c] = TRUE ;\
  78. brf_exception[listptr].brf_ex_custom_handler = d ;\
  79. brf_exception[listptr].brf_ex_message = e ;\
  80.         listptr++;\
  81. }
  82.  
  83.  
  84.  
  85.  
  86. #define LIST_RRANGE(a,b,c,d,e,f)\
  87. {\
  88. INIT_LIST(listptr);\
  89. brf_exception[listptr].brf_ex_type = a ;\
  90. brf_exception[listptr].brf_ex_flag = b ;\
  91. brf_exception[listptr].brf_ex_rrange[RANGESTART] = c ;\
  92. brf_exception[listptr].brf_ex_rrange[RANGESTOP] = d ;\
  93. brf_exception[listptr].brf_ex_custom_handler = e ;\
  94. brf_exception[listptr].brf_ex_message = f ;\
  95.         listptr++;\
  96. }
  97.  
  98.  
  99.  
  100.  
  101. #define LIST_INVERT_RRANGE(a,b,c,d,e,f)\
  102. {\
  103. INIT_LIST(listptr);\
  104. brf_exception[listptr].brf_ex_type = a ;\
  105. brf_exception[listptr].brf_ex_flag = b ;\
  106. brf_exception[listptr].brf_ex_logic = FALSE ;\
  107. brf_exception[listptr].brf_ex_rrange[RANGESTART] = c ;\
  108. brf_exception[listptr].brf_ex_rrange[RANGESTOP] = d ;\
  109. brf_exception[listptr].brf_ex_custom_handler = e ;\
  110. brf_exception[listptr].brf_ex_message = f ;\
  111.         listptr++;\
  112. }
  113.  
  114.  
  115.  
  116.  
  117.  
  118. #define LIST_IRANGE(a,b,c,d,e,f)\
  119. {\
  120. INIT_LIST(listptr);\
  121. brf_exception[listptr].brf_ex_type = a ;\
  122. brf_exception[listptr].brf_ex_flag = b ;\
  123. brf_exception[listptr].brf_ex_range[RANGESTART] = c ;\
  124. brf_exception[listptr].brf_ex_range[RANGESTOP] = d ;\
  125. brf_exception[listptr].brf_ex_custom_handler = e ;\
  126. brf_exception[listptr].brf_ex_message = f ;\
  127.         listptr++;\
  128. }
  129.  
  130.  
  131.  
  132.  
  133. #define LIST_INVERT_IRANGE(a,b,c,d,e,f)\
  134. {\
  135. INIT_LIST(listptr);\
  136. brf_exception[listptr].brf_ex_type = a ;\
  137. brf_exception[listptr].brf_ex_flag = b ;\
  138. brf_exception[listptr].brf_ex_logic = FALSE ;\
  139. brf_exception[listptr].brf_ex_range[RANGESTART] = c ;\
  140. brf_exception[listptr].brf_ex_range[RANGESTOP] = d ;\
  141. brf_exception[listptr].brf_ex_custom_handler = e ;\
  142. brf_exception[listptr].brf_ex_message = f ;\
  143.         listptr++;\
  144. }
  145.  
  146.  
  147.  
  148. #define LIST_COLORMODE(a,b,c,d)\
  149. {\
  150. INIT_LIST(listptr);\
  151. brf_exception[listptr].brf_ex_type = a ;\
  152. brf_exception[listptr].brf_ex_flag = b ;\
  153. brf_exception[listptr].brf_ex_custom_handler = c ;\
  154. brf_exception[listptr].brf_ex_message = d ;\
  155.         listptr++;\
  156. }
  157.  
  158.  
  159.