Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
2.7 KiB

  1. /***********************************************************************
  2. //
  3. // ALIAS.H
  4. //
  5. // Copyright (c) 1992 - Microsoft Corp.
  6. // All rights reserved.
  7. // Microsoft Confidential
  8. //
  9. // Global constants and data types used by the Jaguar file engine.
  10. //
  11. ***********************************************************************/
  12. //**********************************************************************
  13. // Normal variable typedefs. These type defs are compatible with OS2
  14. // typedefs.
  15. //**********************************************************************
  16. #ifndef CHAR
  17. typedef char CHAR;
  18. #endif
  19. #ifndef UCHAR
  20. typedef unsigned char UCHAR;
  21. #endif
  22. #ifndef INT
  23. typedef int INT;
  24. #endif
  25. #ifndef UINT
  26. typedef unsigned int UINT;
  27. #endif
  28. #ifndef UL
  29. typedef unsigned long UL;
  30. #endif
  31. #if 0
  32. #ifndef FLOAT
  33. typedef float FLOAT;
  34. #endif
  35. #endif
  36. #ifndef DOUBLE
  37. typedef double DOUBLE;
  38. #endif
  39. #ifndef LONG
  40. typedef long LONG;
  41. #endif
  42. //**********************************************************************
  43. // ANY_TYPE
  44. //
  45. // This is a union which can be used to cast any type to a basic
  46. // data type.
  47. //
  48. //**********************************************************************
  49. typedef union
  50. {
  51. CHAR Byte;
  52. UCHAR uByte;
  53. INT Word;
  54. UINT uWord;
  55. LONG Dword;
  56. UL uDword;
  57. } ANY_TYPE;
  58. //**********************************************************************
  59. // Standard global constants.
  60. // Don't change the TRUE define because some functions depend on it being
  61. // 1 instead of !FALSE.
  62. //**********************************************************************
  63. #ifndef FALSE
  64. #define FALSE 0
  65. #define TRUE 1
  66. #endif
  67. #ifndef EOL
  68. #define EOL '\0'
  69. #endif
  70. #ifndef OK
  71. #define OK 0
  72. #endif
  73. //**********************************************************************
  74. // DeReference macro for unused function arguments
  75. //**********************************************************************
  76. #ifndef DeReference
  77. #ifdef _lint
  78. #define DeReference( x ) x = x
  79. #else
  80. #define DeReference( x ) x = x
  81. #endif
  82. #endif
  83. //**********************************************************************
  84. // MAX_PATH is the max path string length.
  85. //**********************************************************************
  86. #ifndef WIN32
  87. #ifndef MAX_PATH
  88. #define MAX_PATH 256 // Really 64 but compatible with OS2
  89. #else
  90. #if MAX_PATH != 256 // Error check
  91. #error
  92. #endif
  93. #endif
  94. #endif
  95. #ifndef MAX_DIR_DEPTH
  96. #define MAX_DIR_DEPTH 32 // Directory levels supported by DOS
  97. #else
  98. #if MAX_DIR_DEPTH != 32 // Error check
  99. #error
  100. #endif
  101. #endif
  102. #ifndef DIR_NAME_LEN
  103. #define DIR_NAME_LEN (8+3) // Len of FCB type file name
  104. #else
  105. #if DIR_NAME_LEN != (8+3) // Error check
  106. #error
  107. #endif
  108. #endif