Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/imh-pyth.../include/git2
File: stdint.h
// ISO C9x compliant stdint.h for Microsoft Visual Studio
[0] Fix | Delete
// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
[1] Fix | Delete
//
[2] Fix | Delete
// Copyright (c) 2006-2008 Alexander Chemeris
[3] Fix | Delete
//
[4] Fix | Delete
// Redistribution and use in source and binary forms, with or without
[5] Fix | Delete
// modification, are permitted provided that the following conditions are met:
[6] Fix | Delete
//
[7] Fix | Delete
// 1. Redistributions of source code must retain the above copyright notice,
[8] Fix | Delete
// this list of conditions and the following disclaimer.
[9] Fix | Delete
//
[10] Fix | Delete
// 2. Redistributions in binary form must reproduce the above copyright
[11] Fix | Delete
// notice, this list of conditions and the following disclaimer in the
[12] Fix | Delete
// documentation and/or other materials provided with the distribution.
[13] Fix | Delete
//
[14] Fix | Delete
// 3. The name of the author may be used to endorse or promote products
[15] Fix | Delete
// derived from this software without specific prior written permission.
[16] Fix | Delete
//
[17] Fix | Delete
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
[18] Fix | Delete
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
[19] Fix | Delete
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
[20] Fix | Delete
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
[21] Fix | Delete
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
[22] Fix | Delete
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
[23] Fix | Delete
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
[24] Fix | Delete
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
[25] Fix | Delete
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
[26] Fix | Delete
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[27] Fix | Delete
//
[28] Fix | Delete
///////////////////////////////////////////////////////////////////////////////
[29] Fix | Delete
[30] Fix | Delete
#ifndef _MSC_VER // [
[31] Fix | Delete
#error "Use this header only with Microsoft Visual C++ compilers!"
[32] Fix | Delete
#endif // _MSC_VER ]
[33] Fix | Delete
[34] Fix | Delete
#ifndef _MSC_STDINT_H_ // [
[35] Fix | Delete
#define _MSC_STDINT_H_
[36] Fix | Delete
[37] Fix | Delete
#if _MSC_VER > 1000
[38] Fix | Delete
#pragma once
[39] Fix | Delete
#endif
[40] Fix | Delete
[41] Fix | Delete
#include <limits.h>
[42] Fix | Delete
[43] Fix | Delete
// For Visual Studio 6 in C++ mode and for many Visual Studio versions when
[44] Fix | Delete
// compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
[45] Fix | Delete
// or compiler give many errors like this:
[46] Fix | Delete
// error C2733: second C linkage of overloaded function 'wmemchr' not allowed
[47] Fix | Delete
#ifdef __cplusplus
[48] Fix | Delete
extern "C" {
[49] Fix | Delete
#endif
[50] Fix | Delete
# include <wchar.h>
[51] Fix | Delete
#ifdef __cplusplus
[52] Fix | Delete
}
[53] Fix | Delete
#endif
[54] Fix | Delete
[55] Fix | Delete
// Define _W64 macros to mark types changing their size, like intptr_t.
[56] Fix | Delete
#ifndef _W64
[57] Fix | Delete
# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
[58] Fix | Delete
# define _W64 __w64
[59] Fix | Delete
# else
[60] Fix | Delete
# define _W64
[61] Fix | Delete
# endif
[62] Fix | Delete
#endif
[63] Fix | Delete
[64] Fix | Delete
[65] Fix | Delete
// 7.18.1 Integer types
[66] Fix | Delete
[67] Fix | Delete
// 7.18.1.1 Exact-width integer types
[68] Fix | Delete
[69] Fix | Delete
// Visual Studio 6 and Embedded Visual C++ 4 doesn't
[70] Fix | Delete
// realize that, e.g. char has the same size as __int8
[71] Fix | Delete
// so we give up on __intX for them.
[72] Fix | Delete
#if (_MSC_VER < 1300)
[73] Fix | Delete
typedef signed char int8_t;
[74] Fix | Delete
typedef signed short int16_t;
[75] Fix | Delete
typedef signed int int32_t;
[76] Fix | Delete
typedef unsigned char uint8_t;
[77] Fix | Delete
typedef unsigned short uint16_t;
[78] Fix | Delete
typedef unsigned int uint32_t;
[79] Fix | Delete
#else
[80] Fix | Delete
typedef signed __int8 int8_t;
[81] Fix | Delete
typedef signed __int16 int16_t;
[82] Fix | Delete
typedef signed __int32 int32_t;
[83] Fix | Delete
typedef unsigned __int8 uint8_t;
[84] Fix | Delete
typedef unsigned __int16 uint16_t;
[85] Fix | Delete
typedef unsigned __int32 uint32_t;
[86] Fix | Delete
#endif
[87] Fix | Delete
typedef signed __int64 int64_t;
[88] Fix | Delete
typedef unsigned __int64 uint64_t;
[89] Fix | Delete
[90] Fix | Delete
[91] Fix | Delete
// 7.18.1.2 Minimum-width integer types
[92] Fix | Delete
typedef int8_t int_least8_t;
[93] Fix | Delete
typedef int16_t int_least16_t;
[94] Fix | Delete
typedef int32_t int_least32_t;
[95] Fix | Delete
typedef int64_t int_least64_t;
[96] Fix | Delete
typedef uint8_t uint_least8_t;
[97] Fix | Delete
typedef uint16_t uint_least16_t;
[98] Fix | Delete
typedef uint32_t uint_least32_t;
[99] Fix | Delete
typedef uint64_t uint_least64_t;
[100] Fix | Delete
[101] Fix | Delete
// 7.18.1.3 Fastest minimum-width integer types
[102] Fix | Delete
typedef int8_t int_fast8_t;
[103] Fix | Delete
typedef int16_t int_fast16_t;
[104] Fix | Delete
typedef int32_t int_fast32_t;
[105] Fix | Delete
typedef int64_t int_fast64_t;
[106] Fix | Delete
typedef uint8_t uint_fast8_t;
[107] Fix | Delete
typedef uint16_t uint_fast16_t;
[108] Fix | Delete
typedef uint32_t uint_fast32_t;
[109] Fix | Delete
typedef uint64_t uint_fast64_t;
[110] Fix | Delete
[111] Fix | Delete
// 7.18.1.4 Integer types capable of holding object pointers
[112] Fix | Delete
#ifdef _WIN64 // [
[113] Fix | Delete
typedef signed __int64 intptr_t;
[114] Fix | Delete
typedef unsigned __int64 uintptr_t;
[115] Fix | Delete
#else // _WIN64 ][
[116] Fix | Delete
typedef _W64 signed int intptr_t;
[117] Fix | Delete
typedef _W64 unsigned int uintptr_t;
[118] Fix | Delete
#endif // _WIN64 ]
[119] Fix | Delete
[120] Fix | Delete
// 7.18.1.5 Greatest-width integer types
[121] Fix | Delete
typedef int64_t intmax_t;
[122] Fix | Delete
typedef uint64_t uintmax_t;
[123] Fix | Delete
[124] Fix | Delete
[125] Fix | Delete
// 7.18.2 Limits of specified-width integer types
[126] Fix | Delete
[127] Fix | Delete
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and footnote 221 at page 259
[128] Fix | Delete
[129] Fix | Delete
// 7.18.2.1 Limits of exact-width integer types
[130] Fix | Delete
#define INT8_MIN ((int8_t)_I8_MIN)
[131] Fix | Delete
#define INT8_MAX _I8_MAX
[132] Fix | Delete
#define INT16_MIN ((int16_t)_I16_MIN)
[133] Fix | Delete
#define INT16_MAX _I16_MAX
[134] Fix | Delete
#define INT32_MIN ((int32_t)_I32_MIN)
[135] Fix | Delete
#define INT32_MAX _I32_MAX
[136] Fix | Delete
#define INT64_MIN ((int64_t)_I64_MIN)
[137] Fix | Delete
#define INT64_MAX _I64_MAX
[138] Fix | Delete
#define UINT8_MAX _UI8_MAX
[139] Fix | Delete
#define UINT16_MAX _UI16_MAX
[140] Fix | Delete
#define UINT32_MAX _UI32_MAX
[141] Fix | Delete
#define UINT64_MAX _UI64_MAX
[142] Fix | Delete
[143] Fix | Delete
// 7.18.2.2 Limits of minimum-width integer types
[144] Fix | Delete
#define INT_LEAST8_MIN INT8_MIN
[145] Fix | Delete
#define INT_LEAST8_MAX INT8_MAX
[146] Fix | Delete
#define INT_LEAST16_MIN INT16_MIN
[147] Fix | Delete
#define INT_LEAST16_MAX INT16_MAX
[148] Fix | Delete
#define INT_LEAST32_MIN INT32_MIN
[149] Fix | Delete
#define INT_LEAST32_MAX INT32_MAX
[150] Fix | Delete
#define INT_LEAST64_MIN INT64_MIN
[151] Fix | Delete
#define INT_LEAST64_MAX INT64_MAX
[152] Fix | Delete
#define UINT_LEAST8_MAX UINT8_MAX
[153] Fix | Delete
#define UINT_LEAST16_MAX UINT16_MAX
[154] Fix | Delete
#define UINT_LEAST32_MAX UINT32_MAX
[155] Fix | Delete
#define UINT_LEAST64_MAX UINT64_MAX
[156] Fix | Delete
[157] Fix | Delete
// 7.18.2.3 Limits of fastest minimum-width integer types
[158] Fix | Delete
#define INT_FAST8_MIN INT8_MIN
[159] Fix | Delete
#define INT_FAST8_MAX INT8_MAX
[160] Fix | Delete
#define INT_FAST16_MIN INT16_MIN
[161] Fix | Delete
#define INT_FAST16_MAX INT16_MAX
[162] Fix | Delete
#define INT_FAST32_MIN INT32_MIN
[163] Fix | Delete
#define INT_FAST32_MAX INT32_MAX
[164] Fix | Delete
#define INT_FAST64_MIN INT64_MIN
[165] Fix | Delete
#define INT_FAST64_MAX INT64_MAX
[166] Fix | Delete
#define UINT_FAST8_MAX UINT8_MAX
[167] Fix | Delete
#define UINT_FAST16_MAX UINT16_MAX
[168] Fix | Delete
#define UINT_FAST32_MAX UINT32_MAX
[169] Fix | Delete
#define UINT_FAST64_MAX UINT64_MAX
[170] Fix | Delete
[171] Fix | Delete
// 7.18.2.4 Limits of integer types capable of holding object pointers
[172] Fix | Delete
#ifdef _WIN64 // [
[173] Fix | Delete
# define INTPTR_MIN INT64_MIN
[174] Fix | Delete
# define INTPTR_MAX INT64_MAX
[175] Fix | Delete
# define UINTPTR_MAX UINT64_MAX
[176] Fix | Delete
#else // _WIN64 ][
[177] Fix | Delete
# define INTPTR_MIN INT32_MIN
[178] Fix | Delete
# define INTPTR_MAX INT32_MAX
[179] Fix | Delete
# define UINTPTR_MAX UINT32_MAX
[180] Fix | Delete
#endif // _WIN64 ]
[181] Fix | Delete
[182] Fix | Delete
// 7.18.2.5 Limits of greatest-width integer types
[183] Fix | Delete
#define INTMAX_MIN INT64_MIN
[184] Fix | Delete
#define INTMAX_MAX INT64_MAX
[185] Fix | Delete
#define UINTMAX_MAX UINT64_MAX
[186] Fix | Delete
[187] Fix | Delete
// 7.18.3 Limits of other integer types
[188] Fix | Delete
[189] Fix | Delete
#ifdef _WIN64 // [
[190] Fix | Delete
# define PTRDIFF_MIN _I64_MIN
[191] Fix | Delete
# define PTRDIFF_MAX _I64_MAX
[192] Fix | Delete
#else // _WIN64 ][
[193] Fix | Delete
# define PTRDIFF_MIN _I32_MIN
[194] Fix | Delete
# define PTRDIFF_MAX _I32_MAX
[195] Fix | Delete
#endif // _WIN64 ]
[196] Fix | Delete
[197] Fix | Delete
#define SIG_ATOMIC_MIN INT_MIN
[198] Fix | Delete
#define SIG_ATOMIC_MAX INT_MAX
[199] Fix | Delete
[200] Fix | Delete
#ifndef SIZE_MAX // [
[201] Fix | Delete
# ifdef _WIN64 // [
[202] Fix | Delete
# define SIZE_MAX _UI64_MAX
[203] Fix | Delete
# else // _WIN64 ][
[204] Fix | Delete
# define SIZE_MAX _UI32_MAX
[205] Fix | Delete
# endif // _WIN64 ]
[206] Fix | Delete
#endif // SIZE_MAX ]
[207] Fix | Delete
[208] Fix | Delete
// WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h>
[209] Fix | Delete
#ifndef WCHAR_MIN // [
[210] Fix | Delete
# define WCHAR_MIN 0
[211] Fix | Delete
#endif // WCHAR_MIN ]
[212] Fix | Delete
#ifndef WCHAR_MAX // [
[213] Fix | Delete
# define WCHAR_MAX _UI16_MAX
[214] Fix | Delete
#endif // WCHAR_MAX ]
[215] Fix | Delete
[216] Fix | Delete
#define WINT_MIN 0
[217] Fix | Delete
#define WINT_MAX _UI16_MAX
[218] Fix | Delete
[219] Fix | Delete
#endif // __STDC_LIMIT_MACROS ]
[220] Fix | Delete
[221] Fix | Delete
[222] Fix | Delete
// 7.18.4 Limits of other integer types
[223] Fix | Delete
[224] Fix | Delete
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260
[225] Fix | Delete
[226] Fix | Delete
// 7.18.4.1 Macros for minimum-width integer constants
[227] Fix | Delete
[228] Fix | Delete
#define INT8_C(val) val##i8
[229] Fix | Delete
#define INT16_C(val) val##i16
[230] Fix | Delete
#define INT32_C(val) val##i32
[231] Fix | Delete
#define INT64_C(val) val##i64
[232] Fix | Delete
[233] Fix | Delete
#define UINT8_C(val) val##ui8
[234] Fix | Delete
#define UINT16_C(val) val##ui16
[235] Fix | Delete
#define UINT32_C(val) val##ui32
[236] Fix | Delete
#define UINT64_C(val) val##ui64
[237] Fix | Delete
[238] Fix | Delete
// 7.18.4.2 Macros for greatest-width integer constants
[239] Fix | Delete
#define INTMAX_C INT64_C
[240] Fix | Delete
#define UINTMAX_C UINT64_C
[241] Fix | Delete
[242] Fix | Delete
#endif // __STDC_CONSTANT_MACROS ]
[243] Fix | Delete
[244] Fix | Delete
[245] Fix | Delete
#endif // _MSC_STDINT_H_ ]
[246] Fix | Delete
[247] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function