home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / yvals.h < prev   
C/C++ Source or Header  |  1998-06-16  |  2KB  |  101 lines

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