Leaked source code of windows server 2003
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.

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