yvals.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _YVALS
  7. #define _YVALS
  8. #include <crtdefs.h>
  9. #pragma pack(push,_CRT_PACKING)
  10. #define _CPPLIB_VER 405
  11. #define __PURE_APPDOMAIN_GLOBAL
  12. #ifndef __CRTDECL
  13. #define __CRTDECL __cdecl
  14. #endif
  15. #define _WIN32_C_LIB 1
  16. #define _MULTI_THREAD 1
  17. #define _IOSTREAM_OP_LOCKS 1
  18. #define _GLOBAL_LOCALE 0
  19. #define _COMPILER_TLS 1
  20. #define _TLS_QUAL __declspec(thread)
  21. #ifndef _HAS_EXCEPTIONS
  22. #define _HAS_EXCEPTIONS 1
  23. #endif
  24. #ifndef _HAS_NAMESPACE
  25. #define _HAS_NAMESPACE 1
  26. #endif
  27. #ifndef _HAS_IMMUTABLE_SETS
  28. #define _HAS_IMMUTABLE_SETS 0
  29. #endif
  30. #ifndef _HAS_STRICT_CONFORMANCE
  31. #define _HAS_STRICT_CONFORMANCE 0
  32. #endif
  33. #define _GLOBAL_USING 1
  34. #define _HAS_ITERATOR_DEBUGGING 0
  35. #define __STR2WSTR(str) L##str
  36. #define _STR2WSTR(str) __STR2WSTR(str)
  37. #define __FILEW__ _STR2WSTR(__FILE__)
  38. #define __FUNCTIONW__ _STR2WSTR(__FUNCTION__)
  39. #define _SCL_SECURE_INVALID_PARAMETER(expr) ::_invalid_parameter_noinfo()
  40. #define _SCL_SECURE_INVALID_ARGUMENT_NO_ASSERT _SCL_SECURE_INVALID_PARAMETER("invalid argument")
  41. #define _SCL_SECURE_OUT_OF_RANGE_NO_ASSERT _SCL_SECURE_INVALID_PARAMETER("out of range")
  42. #define _SCL_SECURE_ALWAYS_VALIDATE(cond) { if (!(cond)) { _ASSERTE((#cond,0)); _SCL_SECURE_INVALID_ARGUMENT_NO_ASSERT; } }
  43. #define _SCL_SECURE_ALWAYS_VALIDATE_RANGE(cond) { if (!(cond)) { _ASSERTE((#cond,0)); _SCL_SECURE_OUT_OF_RANGE_NO_ASSERT; } }
  44. #define _SCL_SECURE_CRT_VALIDATE(cond,retvalue) { if (!(cond)) { _ASSERTE((#cond,0)); _SCL_SECURE_INVALID_PARAMETER(cond); return (retvalue); } }
  45. #define _SCL_SECURE_VALIDATE(cond)
  46. #define _SCL_SECURE_VALIDATE_RANGE(cond)
  47. #define _SCL_SECURE_INVALID_ARGUMENT
  48. #define _SCL_SECURE_OUT_OF_RANGE
  49. #define _SCL_SECURE_MOVE(func,dst,size,src,count) func((dst),(src),(count))
  50. #define _SCL_SECURE_COPY(func,dst,size,src,count) func((dst),(src),(count))
  51. #define _SECURE_VALIDATION _Secure_validation
  52. #define _SECURE_VALIDATION_DEFAULT false
  53. #define _SCL_SECURE_TRAITS_VALIDATE(cond)
  54. #define _SCL_SECURE_TRAITS_VALIDATE_RANGE(cond)
  55. #define _SCL_SECURE_TRAITS_INVALID_ARGUMENT
  56. #define _SCL_SECURE_TRAITS_OUT_OF_RANGE
  57. #define _CRT_SECURE_MEMCPY(dest,destsize,source,count) ::memcpy((dest),(source),(count))
  58. #define _CRT_SECURE_MEMMOVE(dest,destsize,source,count) ::memmove((dest),(source),(count))
  59. #define _CRT_SECURE_WMEMCPY(dest,destsize,source,count) ::wmemcpy((dest),(source),(count))
  60. #define _CRT_SECURE_WMEMMOVE(dest,destsize,source,count) ::wmemmove((dest),(source),(count))
  61. #ifndef _VC6SP2
  62. #define _VC6SP2 0
  63. #endif
  64. #ifndef _CRTIMP2_NCEEPURE
  65. #define _CRTIMP2_NCEEPURE _CRTIMP
  66. #endif
  67. #ifndef _MRTIMP2_NPURE
  68. #define _MRTIMP2_NPURE
  69. #endif
  70. #ifndef _MRTIMP2_NCEE
  71. #define _MRTIMP2_NCEE _CRTIMP
  72. #endif
  73. #ifndef _MRTIMP2_NCEEPURE
  74. #define _MRTIMP2_NCEEPURE _CRTIMP
  75. #endif
  76. #ifndef _MRTIMP2_NPURE_NCEEPURE
  77. #define _MRTIMP2_NPURE_NCEEPURE
  78. #endif
  79. #define _DLL_CPPLIB
  80. #ifndef _CRTIMP2_PURE
  81. #define _CRTIMP2_PURE _CRTIMP
  82. #endif
  83. #ifndef _CRTDATA2
  84. #define _CRTDATA2 _CRTIMP
  85. #endif
  86. #define _DEPRECATED
  87. #ifdef __cplusplus
  88. #define _STD_BEGIN namespace std {
  89. #define _STD_END }
  90. #define _STD ::std::
  91. #define _STDEXT_BEGIN namespace stdext {
  92. #define _STDEXT_END }
  93. #define _STDEXT ::stdext::
  94. #ifdef _STD_USING
  95. #define _C_STD_BEGIN namespace std {
  96. #define _C_STD_END }
  97. #define _CSTD ::std::
  98. #else
  99. #define _C_STD_BEGIN
  100. #define _C_STD_END
  101. #define _CSTD ::
  102. #endif
  103. #define _C_LIB_DECL extern "C" {
  104. #define _END_C_LIB_DECL }
  105. #define _EXTERN_C extern "C" {
  106. #define _END_EXTERN_C }
  107. #else
  108. #define _STD_BEGIN
  109. #define _STD_END
  110. #define _STD
  111. #define _C_STD_BEGIN
  112. #define _C_STD_END
  113. #define _CSTD
  114. #define _C_LIB_DECL
  115. #define _END_C_LIB_DECL
  116. #define _EXTERN_C
  117. #define _END_EXTERN_C
  118. #endif
  119. #define _Restrict __restrict__
  120. #ifdef __cplusplus
  121. #pragma push_macro("_Bool")
  122. #undef _Bool
  123. _STD_BEGIN
  124. typedef bool _Bool;
  125. _STD_END
  126. #pragma pop_macro("_Bool")
  127. #endif
  128. #define _LONGLONG /* __MINGW_EXTENSION */ __int64
  129. #define _ULONGLONG /* __MINGW_EXTENSION */ unsigned __int64
  130. #define _LLONG_MAX 0x7fffffffffffffffLL
  131. #define _ULLONG_MAX 0xffffffffffffffffULL
  132. #define _C2 1
  133. #define _MAX_EXP_DIG 8
  134. #define _MAX_INT_DIG 32
  135. #define _MAX_SIG_DIG 36
  136. __MINGW_EXTENSION typedef _LONGLONG _Longlong;
  137. __MINGW_EXTENSION typedef _ULONGLONG _ULonglong;
  138. #define _Filet _iobuf
  139. #ifndef _FPOS_T_DEFINED
  140. #define _FPOSOFF(fp) ((long)(fp))
  141. #endif
  142. #define _IOBASE _base
  143. #define _IOPTR _ptr
  144. #define _IOCNT _cnt
  145. #define _LOCK_LOCALE 0
  146. #define _LOCK_MALLOC 1
  147. #define _LOCK_STREAM 2
  148. #define _LOCK_DEBUG 3
  149. #define _MAX_LOCK 4
  150. #ifdef __cplusplus
  151. _STD_BEGIN
  152. class _CRTIMP _Lockit {
  153. public:
  154. explicit __thiscall _Lockit();
  155. explicit __thiscall _Lockit(int);
  156. __thiscall ~_Lockit();
  157. static void __cdecl _Lockit_ctor(int);
  158. static void __cdecl _Lockit_dtor(int);
  159. private:
  160. static void __cdecl _Lockit_ctor(_Lockit *);
  161. static void __cdecl _Lockit_ctor(_Lockit *,int);
  162. static void __cdecl _Lockit_dtor(_Lockit *);
  163. _Lockit(const _Lockit&);
  164. _Lockit& operator=(const _Lockit&);
  165. int _Locktype;
  166. };
  167. #define _BEGIN_LOCK(_Kind) { _STD _Lockit _Lock(_Kind);
  168. #define _END_LOCK() }
  169. #define _BEGIN_LOCINFO(_VarName) { _Locinfo _VarName;
  170. #define _END_LOCINFO() }
  171. #define _RELIABILITY_CONTRACT
  172. class _CRTIMP _Mutex {
  173. public:
  174. __thiscall _Mutex();
  175. __thiscall ~_Mutex();
  176. void __thiscall _Lock();
  177. void __thiscall _Unlock();
  178. private:
  179. static void __cdecl _Mutex_ctor(_Mutex *);
  180. static void __cdecl _Mutex_dtor(_Mutex *);
  181. static void __cdecl _Mutex_Lock(_Mutex *);
  182. static void __cdecl _Mutex_Unlock(_Mutex *);
  183. _Mutex(const _Mutex&);
  184. _Mutex& operator=(const _Mutex&);
  185. void *_Mtx;
  186. };
  187. class _CRTIMP _Init_locks {
  188. public:
  189. __thiscall _Init_locks();
  190. __thiscall ~_Init_locks();
  191. private:
  192. static void __cdecl _Init_locks_ctor(_Init_locks *);
  193. static void __cdecl _Init_locks_dtor(_Init_locks *);
  194. };
  195. _STD_END
  196. #endif
  197. #ifndef _RELIABILITY_CONTRACT
  198. #define _RELIABILITY_CONTRACT
  199. #endif
  200. _C_STD_BEGIN
  201. _CRTIMP void __cdecl _Atexit(void (__cdecl *)(void));
  202. #if !defined(_UCRT) && !defined(__LARGE_MBSTATE_T)
  203. typedef int _Mbstatet;
  204. #endif
  205. #define _ATEXIT_T void
  206. #define _Mbstinit(x) mbstate_t x = {0}
  207. _C_STD_END
  208. #define _EXTERN_TEMPLATE template
  209. #define _THROW_BAD_ALLOC _THROW1(...)
  210. #pragma pack(pop)
  211. #endif