home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / CMTYPES.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  4KB  |  125 lines

  1. /* @(#)Z 1.6 com/src/cm/CMTypes.h, odstorage, od96os2, odos29646d 96/11/15 15:26:55 (96/10/29 09:17:17) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odstorage
  6.  *
  7.  *   CLASSES: none
  8.  *
  9.  *   ORIGINS: 82,27
  10.  *
  11.  *
  12.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13.  *   All Rights Reserved
  14.  *   Licensed Materials - Property of IBM
  15.  *   US Government Users Restricted Rights - Use, duplication or
  16.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17.  *       
  18.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24.  *   OR PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26. /*====END_GENERATED_PROLOG========================================
  27.  */
  28.  
  29. /*
  30.     File:        CMTypes.h
  31.  
  32.     Contains:    Container Manager Private "Types.h"
  33.  
  34.     Written by:    Ira L. Ruben
  35.  
  36.     Owned by:    Ed Lai
  37.  
  38.     Copyright:    ⌐ 1991-1994 by Apple Computer, Inc., all rights reserved.
  39.  
  40.     Change History (most recent first):
  41.  
  42.          <2>     8/26/94    EL        #1181622 Ownership update.
  43.  
  44.     To Do:
  45. */
  46.  
  47. /*---------------------------------------------------------------------------*
  48.  |                                                                           |
  49.  |                             <<< CMTypes.h >>>                             |
  50.  |                                                                           |
  51.  |                    Container Manager Private "Types.h"                    |
  52.  |                                                                           |
  53.  |                               Ira L. Ruben                                |
  54.  |                                 11/18/91                                  |
  55.  |                                                                           |
  56.  |                  Copyright Apple Computer, Inc. 1991-1994                 |
  57.  |                           All rights reserved.                            |
  58.  |                                                                           |
  59.  *---------------------------------------------------------------------------*
  60.  
  61.  This file is the "moral equivalent" to Apple's Types.h, stripped down to the basic
  62.  definitions needed by the Container Manager.  All internal Container Manager code files
  63.  include this header.  Because of that, those files do not include the other environmental
  64.  and configuration headers because we do that here for them.  Thus this file is to be
  65.  include for all basic definitions.
  66. */
  67.  
  68. #ifndef __CMTYPES__
  69. #define __CMTYPES__
  70.  
  71. #ifndef __CM_API_ENV__
  72. #include "CMAPIEnv.h"
  73. #endif
  74. #ifndef __CMCONFIG__
  75. #include "CMConfig.h"
  76. #endif
  77.  
  78.  
  79. #ifndef __DEBUG__
  80. #define __DEBUG__ 0
  81. #endif
  82.  
  83.  
  84. /*---------------------*
  85.  | Mac "Types.h" Stuff |
  86.  *---------------------*
  87.  
  88.  These are some basic types we use internally in the Container Manager:
  89. */
  90.  
  91. #ifndef __TYPES__                                                            /* allows me to test with Macintosh MPW     */
  92. #ifndef _BooleanType
  93. typedef unsigned char Boolean;                                /* Booleans...                                                        */
  94. #endif
  95.  
  96. #ifndef _BooleanConst
  97. enum {false,true};
  98. #endif
  99.  
  100. #endif
  101.  
  102.  
  103. /*-----------------------*
  104.  | Debugging Definitions |
  105.  *-----------------------*
  106.  
  107.  For Mac debugging, the low level Mac debugger, "MacsBug" is used.  It's definitions are
  108.  defined under a __DEBUG__ compile-time switch. 
  109. */
  110.  
  111. #if __DEBUG__
  112. #ifndef __TYPES__
  113.  
  114.                                                             CM_CFUNCTIONS
  115.                                                             
  116. pascal void Debugger(void) = 0xA9FF; 
  117. pascal void DebugStr(const unsigned char * aStr) = 0xABFF; 
  118.  
  119.                                                         CM_END_CFUNCTIONS
  120.  
  121. #endif /* __TYPES__ */
  122. #endif /* __DEBUG__ */
  123.  
  124. #endif /* __CMTYPES__ */
  125.