home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / som30tk.zip / som30os2.zip / include / smcidl.h < prev    next >
C/C++ Source or Header  |  1996-12-24  |  1KB  |  49 lines

  1. /*
  2.  *   COMPONENT_NAME: somc
  3.  *
  4.  *   ORIGINS: 27
  5.  *
  6.  *
  7.  *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996 
  8.  *   All Rights Reserved
  9.  *   Licensed Materials - Property of IBM
  10.  *   US Government Users Restricted Rights - Use, duplication or
  11.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12.  */
  13. /* @(#) somc/smcidl.h 2.7 12/26/95 15:53:19 [12/24/96 07:39:09] */
  14.  
  15. /*
  16.  */
  17.  
  18. /*
  19.  *         File:    smcidl.h.
  20.  *     Contents:    Header file which contains special macros for
  21.  *                  so that we can easily construct c and idl header
  22.  *                  files and types.
  23.  *
  24.  *                  It can be include multiple times without damage!
  25.  */
  26.  
  27. #undef _case
  28. #undef _switch
  29. #undef _struct
  30. #undef _typedef
  31. #undef _name
  32.  
  33. #ifdef __SOMIDL__
  34.     /*
  35.      * The _case and _switch macro are for IDL Unions.
  36.      */
  37.     #define _case(n)                       case n:
  38.     #define _switch(t)                     switch(t)
  39.     #define _struct                        /* Nothing */
  40.     #define _typedef                       /* Nothing */
  41.     #define _name(name)                    /* Nothing */
  42. #else
  43.     #define _case(n)                       /* Nothing */
  44.     #define _switch(t)                     /* Nothing */
  45.     #define _struct                        struct
  46.     #define _typedef                       typedef
  47.     #define _name(name)                    name
  48. #endif
  49.