home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lvmtlk12.zip / include / lvm_gbls.h < prev    next >
C/C++ Source or Header  |  2000-12-09  |  2KB  |  96 lines

  1. /*
  2. *
  3. *   Copyright (c) International Business Machines  Corp., 2000
  4. *
  5. *   This program is free software;  you can redistribute it and/or modify
  6. *   it under the terms of the GNU General Public License as published by
  7. *   the Free Software Foundation; either version 2 of the License, or
  8. *   (at your option) any later version.
  9. *
  10. *   This program is distributed in the hope that it will be useful,
  11. *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
  12. *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
  13. *   the GNU General Public License for more details.
  14. *
  15. *   You should have received a copy of the GNU General Public License
  16. *   along with this program;  if not, write to the Free Software
  17. *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. * Module: lvm_glbs.h
  20. */
  21.  
  22. /*
  23. * Change History:
  24. *
  25. */
  26. /*
  27. * Description: Defines types and macros which are used throughout the CHKDSK
  28. *              source code.
  29. *
  30. */
  31.  
  32. #ifndef LVM_GLBS_H_INCLUDED
  33.  
  34. #define LVM_GLBS_H_INCLUDED 1
  35.  
  36. /* An INTEGER number is a whole number, either + or -.
  37. The number appended to the INTEGER key word indicates the number of bits
  38. used to represent an INTEGER of that type.                               */
  39. typedef short int INTEGER16;
  40. typedef long  int INTEGER32;
  41. typedef int       INTEGER;    /* Use compiler default. */
  42.  
  43. /* A CARDINAL number is a positive integer >= 0.
  44. The number appended to the CARDINAL key word indicates the number of bits
  45. used to represent a CARDINAL of that type.                               */
  46.  
  47. typedef unsigned short int CARDINAL16;
  48. typedef unsigned long      CARDINAL32;
  49. typedef unsigned int       CARDINAL;     /* Use compiler default. */
  50.  
  51. #ifdef NEED_BYTE_DEFINED
  52.  
  53. /* A BYTE is 8 bits of memory with no interpretation attached. */
  54. typedef unsigned char BYTE;
  55.  
  56. #else
  57.  
  58. #ifndef BYTE
  59.  
  60. #define BYTE unsigned char
  61.  
  62. #endif
  63.  
  64. #endif
  65.  
  66. /* A REAL number is a floating point number. */
  67. typedef float   REAL32;
  68. typedef double  REAL64;
  69.  
  70. /* A BOOLEAN variable is one which is either TRUE or FALSE. */
  71. typedef unsigned char  BOOLEAN;
  72.  
  73. #ifndef TRUE
  74.  
  75. #define TRUE  1
  76. #define FALSE 0
  77.  
  78. #endif
  79.  
  80. /* An ADDRESS variable is one which holds an address.  The address can contain
  81. anything, or even be invalid.  It is just an address which is presumed to
  82. hold some kind of data. */
  83.  
  84. #ifdef ADDRESS
  85.  
  86. #undef ADDRESS
  87.  
  88. #endif
  89.  
  90. typedef void * ADDRESS;
  91.  
  92. typedef char * pSTRING;
  93.  
  94. #endif
  95.  
  96.