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.

95 lines
2.0 KiB

  1. /* yvals.h values header for Microsoft C/C++ */
  2. #ifndef _YVALS
  3. #define _YVALS
  4. #include <use_ansi.h>
  5. /* Define _CRTIMP2 */
  6. #ifndef _CRTIMP2
  7. #ifdef CRTDLL2
  8. #define _CRTIMP2 __declspec(dllexport)
  9. #else /* ndef CRTDLL2 */
  10. #ifdef _DLL
  11. #define _CRTIMP2 __declspec(dllimport)
  12. #else /* ndef _DLL */
  13. #define _CRTIMP2
  14. #endif /* _DLL */
  15. #endif /* CRTDLL2 */
  16. #endif /* _CRTIMP2 */
  17. #ifdef _MSC_VER
  18. #pragma pack(push,8)
  19. #endif /* _MSC_VER */
  20. #pragma warning(4: 4018 4114 4146 4244 4245)
  21. #pragma warning(4: 4663 4664 4665)
  22. #pragma warning(disable: 4237 4284 4290 4514)
  23. /* NAMESPACE */
  24. #if defined(__cplusplus)
  25. #define _STD std::
  26. #define _STD_BEGIN namespace std {
  27. #define _STD_END };
  28. #define _STD_USING
  29. #else
  30. #define _STD ::
  31. #define _STD_BEGIN
  32. #define _STD_END
  33. #endif /* __cplusplus */
  34. _STD_BEGIN
  35. /* TYPE bool */
  36. #if defined(__cplusplus)
  37. typedef bool _Bool;
  38. #endif /* __cplusplus */
  39. /* INTEGER PROPERTIES */
  40. #define _MAX_EXP_DIG 8 /* for parsing numerics */
  41. #define _MAX_INT_DIG 32
  42. #define _MAX_SIG_DIG 36
  43. /* STDIO PROPERTIES */
  44. #define _Filet _iobuf
  45. #ifndef _FPOS_T_DEFINED
  46. #define _FPOSOFF(fp) ((long)(fp))
  47. #endif /* _FPOS_T_DEFINED */
  48. /* NAMING PROPERTIES */
  49. #if defined(__cplusplus)
  50. #define _C_LIB_DECL extern "C" {
  51. #define _END_C_LIB_DECL }
  52. #else
  53. #define _C_LIB_DECL
  54. #define _END_C_LIB_DECL
  55. #endif /* __cplusplus */
  56. #define _CDECL
  57. // CLASS _Lockit
  58. #if defined(__cplusplus)
  59. class _CRTIMP2 _Lockit
  60. { // lock while object in existence
  61. public:
  62. #ifdef _MT
  63. #define _LOCKIT(x) lockit x
  64. _Lockit();
  65. ~_Lockit();
  66. #else
  67. #define _LOCKIT(x)
  68. _Lockit()
  69. {}
  70. ~_Lockit()
  71. {}
  72. #endif /* _MT */
  73. };
  74. #endif /* __cplusplus */
  75. /* MISCELLANEOUS MACROS */
  76. #define _L(c) L##c
  77. #define _Mbstinit(x) mbstate_t x = {0}
  78. #define _MAX _cpp_max
  79. #define _MIN _cpp_min
  80. _STD_END
  81. #ifdef _MSC_VER
  82. #pragma pack(pop)
  83. #endif /* _MSC_VER */
  84. #endif /* _YVALS */
  85. /*
  86. * Copyright (c) 1996 by P.J. Plauger. ALL RIGHTS RESERVED.
  87. * Consult your license regarding permissions and restrictions.
  88. */