home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / BLACKHOL.ZIP / BLACKHOL.H < prev    next >
C/C++ Source or Header  |  1992-11-19  |  5KB  |  185 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: BlackHol.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  * 
  13.  *   DMan.CSC - Workplace Shell test
  14.  * ────────────────────────────────────────────────────────────────────┐
  15.  * │  Greg's Black Hole - anything you put in will disappear forever...  │
  16.  * │                                                                     │
  17.  * └──────────────────┐   Gregory Czaja, CONT00 @ LEXVMK, November 1992  │
  18.  *                    └─────────────────────────────────────────────────
  19.  */
  20.  
  21.  
  22. #ifndef BlackHol_h
  23. #define BlackHol_h
  24.  
  25.  
  26. #include <som.h>
  27.  
  28. /*
  29.  * Define the class name as an object type
  30.  */
  31. #ifndef BlackHole
  32. #define BlackHole SOMAny
  33. #endif
  34. #include "wpabs.h"
  35.  
  36. /*
  37.  * Passthru lines: File: "C.h", "after"
  38.  */
  39. /* public defs for BlackHole */
  40.  
  41. #define BlackHole_MajorVersion 1
  42. #define BlackHole_MinorVersion 1
  43.  
  44. /*
  45.  * External name shortening if required
  46.  */
  47. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  48. #define BlackHoleNewClass BlackHolc
  49. #pragma linkage(BlackHolc, system)
  50. #define BlackHoleClassData BlackHold
  51. #define BlackHoleCClassData BlackHolx
  52. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  53. /*--------------Migration------------*/
  54. #define BlackHole_classObj BlackHoleClassData.classObject
  55. #define _BlackHole BlackHole_classObj
  56.  
  57. /*
  58.  * New and Renew macros for BlackHole
  59.  */
  60. #define _BlackHoleNew() (_somNew(BlackHoleClassData.classObject))
  61. #define BlackHoleNew() \
  62.     ( BlackHoleClassData.classObject \
  63.         ? _BlackHoleNew() \
  64.         : ( BlackHoleNewClass(BlackHole_MajorVersion, BlackHole_MinorVersion), _BlackHoleNew() ) )
  65. #define BlackHoleRenew(buf) \
  66.     ( _somRenew(BlackHoleClassData.classObject, buf) )
  67.  
  68. /*
  69.  * Override method: wpDragOver
  70.  */
  71. #define BlackHole_wpDragOver(somSelf,hwndCnr,pdrgInfo) \
  72.     WPObject_wpDragOver(somSelf,hwndCnr,pdrgInfo)
  73.  
  74. /*
  75.  * Override method: wpDrop
  76.  */
  77. #define BlackHole_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
  78.     WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem)
  79.  
  80. /*
  81.  * Declare the class creation procedure
  82.  */
  83. SOMEXTERN SOMAny * SOMLINK BlackHoleNewClass(integer4 scemajorVersion,
  84.         integer4 sceminorVersion);
  85. #pragma linkage(BlackHoleNewClass, system)
  86.  
  87. /*
  88.  * Declare the class data structure
  89.  */
  90. SOMEXTERN struct BlackHoleClassDataStructure {
  91.     SOMAny *classObject;
  92. } BlackHoleClassData;
  93.  
  94. /*
  95.  * Declare the C specific class data structure
  96.  */
  97. SOMEXTERN struct BlackHoleCClassDataStructure {
  98.     somMethodTab *parentMtab;
  99.     somDToken instanceDataToken;
  100. } BlackHoleCClassData;
  101.  
  102. #endif       /* BlackHol_h */
  103.  
  104. /*
  105.  * This file was generated by the SOM Compiler.
  106.  * FileName: BlackHol.h.
  107.  * Generated using:
  108.  *     SOM Precompiler spc: 1.22
  109.  *     SOM Emitter emith: 1.11
  110.  */
  111.  
  112. #ifndef BlackHol_mh
  113. #define BlackHol_mh
  114.  
  115.  
  116. /*
  117.  * Define the class name as an object type
  118.  */
  119. #ifndef M_BlackHole
  120. #define M_BlackHole SOMAny
  121. #endif
  122.  
  123. #define M_BlackHole_MajorVersion 1
  124. #define M_BlackHole_MinorVersion 1
  125.  
  126. /*
  127.  * External name shortening if required
  128.  */
  129. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  130. #define M_BlackHoleNewClass BlackHolc
  131. #pragma linkage(BlackHolc, system)
  132. #define M_BlackHoleClassData BlackHold
  133. #define M_BlackHoleCClassData BlackHolx
  134. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  135. /*--------------Migration------------*/
  136. #define M_BlackHole_classObj M_BlackHoleClassData.classObject
  137. #define _M_BlackHole M_BlackHole_classObj
  138.  
  139. /*
  140.  * New and Renew macros for M_BlackHole
  141.  */
  142. #define _M_BlackHoleNew() (_somNew(M_BlackHoleClassData.classObject))
  143. #define M_BlackHoleNew() \
  144.     ( M_BlackHoleClassData.classObject \
  145.         ? _M_BlackHoleNew() \
  146.         : ( M_BlackHoleNewClass(M_BlackHole_MajorVersion, M_BlackHole_MinorVersion), _M_BlackHoleNew() ) )
  147. #define M_BlackHoleRenew(buf) \
  148.     ( _somRenew(M_BlackHoleClassData.classObject, buf) )
  149.  
  150. /*
  151.  * Override method: wpclsInitData
  152.  */
  153. #define M_BlackHole_wpclsInitData(somSelf) \
  154.     M_WPObject_wpclsInitData(somSelf)
  155.  
  156. /*
  157.  * Override method: wpclsUnInitData
  158.  */
  159. #define M_BlackHole_wpclsUnInitData(somSelf) \
  160.     M_WPObject_wpclsUnInitData(somSelf)
  161.  
  162. /*
  163.  * Declare the class creation procedure
  164.  */
  165. SOMEXTERN SOMAny * SOMLINK M_BlackHoleNewClass(integer4 scemajorVersion,
  166.         integer4 sceminorVersion);
  167. #pragma linkage(M_BlackHoleNewClass, system)
  168.  
  169. /*
  170.  * Declare the class data structure
  171.  */
  172. SOMEXTERN struct M_BlackHoleClassDataStructure {
  173.     SOMAny *classObject;
  174. } M_BlackHoleClassData;
  175.  
  176. /*
  177.  * Declare the C specific class data structure
  178.  */
  179. SOMEXTERN struct M_BlackHoleCClassDataStructure {
  180.     somMethodTab *parentMtab;
  181.     somDToken instanceDataToken;
  182. } M_BlackHoleCClassData;
  183.  
  184. #endif       /* BlackHol_h */
  185.