History log of /external/clang/lib/Headers/stdint.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
651f13cea278ec967336033dd032faef0e9fc2ec 24-Apr-2014 Stephen Hines <srhines@google.com> Updated to Clang 3.5a.

Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/lib/Headers/stdint.h
2943d3dded877fbe0bb965756f047d379032d4ba 13-Apr-2013 Daniel Dunbar <daniel@zuster.org> Headers: Add support for ISO9899:2011 rsize_t.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179427 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
32b5013a7a443ff12cbaa5f3e2f86978179d5e04 13-Apr-2013 Richard Smith <richard-llvm@metafoo.co.uk> tl;dr: Teach Clang to work around g++ changing its workaround to glibc's
implementation of C99's attempt to control the C++ standard. *sigh*


The C99 standard says that certain macros in <stdint.h>, such as SIZE_MAX,
should not be defined when the header is included in C++ mode, unless
__STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS are defined. The C++11 standard
says "Thanks, but no thanks" and C11 removed this rule, but various C library
implementations (such as glibc) follow C99 anyway.

g++ prior to 4.8 worked around the C99 / glibc behavior by defining
__STDC_*_MACROS in <cstdint>, which was incorrect, because <stdint.h> is
supposed to provide these macros too. g++ 4.8 works around it by defining
__STDC_*_MACROS in its builtin <stdint.h> header.

This change makes Clang act like g++ 4.8 in this regard: our <stdint.h> now
countermands any attempt by the C library to implement the undesired C99 rules,
by defining the __STDC_*_MACROS first. Unlike g++, we do this even in C++98
mode, since that was the intent of the C++ committee, matches the behavior
required in C11, and matches our built-in implementation of <stdint.h>.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179419 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
277d1e1efd4d450667e7856550c02eed19aa081c 30-Apr-2011 Eli Friedman <eli.friedman@gmail.com> Some small improvements to the builtin (-ffreestanding) stdint.h; in
particular, make sure to handle WCHAR_MIN correctly.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
1cfeefdb383b106f63d91dd715f54339467d6aa8 21-Apr-2011 Eli Friedman <eli.friedman@gmail.com> PR9772: Fix the definition of WINT_MIN and WINT_MAX on Linux -ffreestanding.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
fc8f0e14ad142ed811e90fbd9a30e419e301c717 15-Apr-2011 Chris Lattner <sabre@nondot.org> fix a bunch of comment typos found by codespell. Patch by
Luis Felipe Strano Moraes!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
96d38c100d5a37f7a3343c526507de5b50f68c27 30-Jun-2010 Daniel Dunbar <daniel@zuster.org> Headers: Change [u]intmax_t to be defined in terms of __[U]INTMAX_TYPE__, instead of intN_t.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
564618f782b9f6d373f789d8cf24943fd345904d 24-Apr-2010 Daniel Dunbar <daniel@zuster.org> Headers: Hide intptr_t and uintptr_t definitions behind _INTPTR_T and _UINTPTR_T
defines, for increased compatibility with Darwin gcc.
- This is a bit of a hack, since platform compatibility issues don't belong
here, but I don't think this hurts anyone either.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102264 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
fc07d91c8995ba73dcdb4bbc8fdc963616dc20cf 22-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Define SIG_ATOMIC_MIN and SIG_ATOMIC_MAX in terms of __SIG_ATOMIC_WIDTH__.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
fdb4324286651ef03abb404ee8388edae13c8bfa 20-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Avoid unwanted expansion in macros that paste together INT<n>_C(v) and
UINT<n>_C(v) macros.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89461 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
a2e92846f114ae639e1b285b4ef5d763dd2596d4 20-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Avoid unwanted expansion in macros that paste together INT<n>_MIN, INT<n>_MAX,
and UINT<n>_MAX defintions.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
aface1b7e0013b3054991c9d54c82d6c890ee554 20-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Avoid unwanted macro expansion in macros that paste together int<n>_t and
uint<n>_t definitions.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
c2bae59b00b7302b17678b493c2d92e9a2598710 19-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Define WCHAR_MIN and WCHAR_MAX in terms of __WCHAR_WIDTH__ for consistency with
other limit macros.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
bfec4b0274ba2b35da277feec495f2d1a6996baa 19-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Parameterize WINT_MIN and WINT_MAX with __WINT_WIDTH__ to support arbitrary
widths. This corrects the values of these definitions for MSP430 and PIC16.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89350 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
4b7d945699c83d5faf136eeef45c108c32063e23 19-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Construct definition of SIZE_MAX from __SIZE_WIDTH__ to support targets of
arbitrary widths.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89347 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
8a3e9d9c0071f3482b92c299005878b122d0a1d4 19-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Construct the macro body of PTRDIFF_MAX and PTRDIFF_MIN from __PTRDIFF_WIDTH__.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89343 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
c3ca6ef0e0624c153b73a5b75bd9e82fc95f2712 18-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Construct INTPTR_MIN, INTPTR_MAX, and UINTPTR_MAX from the exact-width limit
macros corresponding to __INTPTR_WIDTH__.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
08321b445af4fb2a2b348f132261d78c3ce8fea1 18-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Define intptr_t and uintptr_t in terms of their equivalent exact-width types.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
832b710f597d7d02bcfc83f7c1c1726209f28c50 18-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Define INTMAX_C and UINTMAX_C in terms of the corresponding exact-width
INTn_C and UINTn_C macros.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
db57ce577108104a0ecacda2f9a9da5609ebd9d8 18-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Define INTMAX_MIN, INTMAX_MAX, and UINTMAX_MAX in terms of the limit macros for
their corresponding exact-width type.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
36fac077b4912375f394ab666ab9ac37b5399dfa 18-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Define intmax_t and uintmax_t as the [u]intN_t type corresponding to
__INTMAX_WIDTH__.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89221 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
b0887562894b387d658893033ccb475f12b5ceec 17-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Replace (-INT8_C(128)), which uses an illegally out-of-range argument for
INT8_C, with (-INT8_C(127)-1) in the definition of INT8_MIN. Apply similar
changes to the definitions of INT16_MIN and INT24_MIN.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89120 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
81638410cf390d517b2e99e9abe4da1a39889206 17-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Use the INTn_C integer constant macros to generate limit constants with correct
suffixes. This corrects the suffixes for the limit constants of the 32-bit
types on MSP430 and PIC16, and the 64-bit types on PPC64, SystemZ, X86_64.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
6ab25f482c6df53caf7a225028dc8bb7d12f0206 17-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Remove unnecessary parens around the bodies of integer constant macros. C99
requires that their arguments be decimal, hex, octal constants---no signs
allowed---making the parens unnecessary.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89095 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
eef22efce8dd9d0ba9adb8f4746b96b584f2521d 16-Nov-2009 Ken Dyck <ken.dyck@onsemi.com> Parameterize the constant-generating macros in stdint.h with new built-in
__INTn_C_SUFFIX__ macros that are defined for types with corresponding
constant suffixes (i.e. long and long long).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88914 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
dcdd2a064a6d3ea7712169629328ef80d6cb28ec 12-Nov-2009 Chris Lattner <sabre@nondot.org> Generalize stdint.h for non-8-bit-multiple types, patch by
Ken Dyck!

"This adds definitions for types of 8-bit multiples
from 8 to 64 to stdint.h and rationalizes the selection of types
for the exact-width definitions in InitPreprocessor.cpp."



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86977 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
06dcf6b09257ac2382a969fc8c7b954adbc4a344 05-Nov-2009 Chris Lattner <sabre@nondot.org> A simple reordering of the definitions in stdint.h and
introduces no new function changes. Patch by Ken Dyck!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
92bd8c70a6837b647a6c55964f8d0a50bf561dbc 02-Nov-2009 John Thompson <John.Thompson.JTSoftware@gmail.com> Added __has_include and __has_include_next.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
6fdca0e1f8352a102f4f0cea0dc29c2209182b15 04-May-2009 Eli Friedman <eli.friedman@gmail.com> Fix for PR3841: follow gcc's example and fall back to the system
stdint.h unless we are freestanding.

Any suggestions here are welcome.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70806 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
ca93195baf1076ee6232a722f5ea5e580fc67a4f 18-Apr-2009 Chris Lattner <sabre@nondot.org> glibc plays some weird games with multiple different definitions of
int8_t and games it with strange *_defined macros. Emulate its weirdness
for better compatibility with linux etc. Problem pointed out by anders
johnson.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
cf117d367ee75d44dfeaf588e00ad0bfbad64ef7 15-Mar-2009 Daniel Dunbar <daniel@zuster.org> Only intptr_t is protected by __intptr_t_defined.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67018 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
ab775f62eab83f06ed972e573599031719ae2a9f 28-Feb-2009 Chris Lattner <sabre@nondot.org> fix inverted conditional, rdar://6633188


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
40e60c27d09d0561cd3ab41c332e3b0838e899dd 13-Feb-2009 Chris Lattner <sabre@nondot.org> anders johnson points out that some software depends on the
definition of __intptr_t_defined when stdint.h defines intptr_t.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
6ad474f82f0cf32e13128d89fa5ad3a37ae73530 13-Feb-2009 Chris Lattner <sabre@nondot.org> Give TargetInfo a new IntPtrType to hold the intptr_t type for
a target.

Make Preprocessor.cpp define a new __INTPTR_TYPE__ macro based on this.

On linux/32, set intptr_t to int, instead of long. This fixes PR3563.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64495 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
6c90919188344201174811b858b8aa385d8503d7 10-Feb-2009 Anders Carlsson <andersca@mac.com> Fix an #ifndef that should be an #ifdef instead.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64206 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
614842802476068c08bced367fa97de4963fd6af 07-Feb-2009 Chris Lattner <sabre@nondot.org> C++ really shouldn't check these #defines, thanks to Howard
for pointing this out!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
dfd556ecdcff225df2943a60487fa792398d9f86 07-Feb-2009 Chris Lattner <sabre@nondot.org> remove two eroneous suffixes, these promote to int. Thanks to Neil
for pointing this out.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64011 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
7ed4f39518e7ae1069d820d2b8bd462d6ee3fd9a 07-Feb-2009 Chris Lattner <sabre@nondot.org> fix some missing parens, thanks for Eli's review!
Obviously I make a miserable header developer :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64009 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
c865f7ae8be99de29c9f2ab68573c11e90b636d1 07-Feb-2009 Chris Lattner <sabre@nondot.org> make sure that UINTMAX_MAX has an unsigned type. This assumes that
uintmax_t is unsigned long long, which is not optimal, but is assumed
elsewhere already.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64007 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
f894bd03546b2f9aa70c5a7a50a90d333c4753dc 07-Feb-2009 Chris Lattner <sabre@nondot.org> make various MAX/MIN constants be preprocessor constants, not C constants.
Thanks to Eli for pointing this out.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
25d69b57ccef6e598d6a4cd8823ee24d56b2c9f7 07-Feb-2009 Chris Lattner <sabre@nondot.org> Apparently it is important to define intptr_t and uintptr_t to
long instead of int. This is because system heaers like to redefine
typedefs and that is an error if they don't exactly match. Use long
for intptr_t on all systems where long is the right size.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63984 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
63b4fe6c118c14707d297f6f879e5e7973b8e6ff 07-Feb-2009 Sebastian Redl <sebastian.redl@getdesigned.at> Fix some errors in the new stdint.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h
2a67f7bd99d004f78a961a16b6525f61313dd974 06-Feb-2009 Chris Lattner <sabre@nondot.org> add a stdint.h header.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63977 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Headers/stdint.h