mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:37:11 +00:00
646c78a9d0
- Bug 1143130 - Initialize nsIFrame::ContentOffsets members, and some additional cleanup. r=roc (334109d125)
- Bug 1185436 - Mark DumpFrameTree() and DumpFrameTreeLimited() const. r=roc (f444841ce7)
- Bug 1163328 - Tests for mozilla::Tuple. r=froydnj (9bdf4a67eb)
- Bug 1184385 - Add a Tie() utility function for tuples (the equivalent of std::tie()) to MFBT. r=froydnj (a683a079e7)
- Bug 1186315 - Fix TestTuple error and add it into testing list. r=nfroyd (8ea986d022)
- Bug 1185706 - support Tie() for mozilla::Pair. r=froydnj (2a74853496)
- Bug 1186126 - Note incompatibility with NSPR printf-like functions. r=nfroyd (eb3aa88cd3)
- Bug 1188895 - Replace U+0A00 with U+0200 in MacroForEach.h. r=Ms2ger (e63d0be26f)
- Bug 1182370 - _BitScan* does not modify *pIndex if input is zero. - r=waldo (3c1280da48)
- Bug 1193600 - Add Clamp and IsPowerOfTwo to MFBT. - r=waldo (7e5e321a74)
- Bug 1139036 - Bind all symbols from libmozglue.dylib when it is loaded. r=ted (c948da5c6d)
- bug 1198226 - Add HOST_{CFLAGS,CXXFLAGS,DEFINES} support to mozbuild frontend+recursive make backend. r=mshal (c5558cbf4c)
- bug 1198226 - Move HOST_{C,CXX}FLAGS to moz.build HOST_{CFLAGS,CXXFLAGS,DEFINES}. r=mshal (031909f24a)
- bug 1198226 - Add HOST_{C,CXX}FLAGS recursive make varible blacklist. r=mshal (c808385c2f)
- Bug 1204134 (attempt 2) - Fix and disallow warnings in config/moz.build. r=glandium. (e1a21ccade)
- code style (374f57dbea)
- Bug 1184284 - Remove txToRemove warning from nsSHistory::RemoveDuplicate. r=smaug (14f02229d5)
- Bug 1203379 - Fix indentation of gfxWordCacheTest.cpp. r=jrmuizel. (c04b07ce17)
- Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj. (974b39f117)
- Bug 1203427 (part 2) - Remove an argument to nsTimeout::InitTimer. r=mccr8. (f6f196c26c)
- Bug 1203809 - pass textperf obj into gfxFontGroup constructor. r=m_kato (1ea2f5cfd2)
- Bug 1203427 (part 3) - Change order of InitCommon() arguments. r=froydnj. (07e6c9b5ca)
- Bug 1203427 (part 4) - Remove trailing whitespace from nsITimer.idl. r=froydnj. (df4473f30a)
- Bug 1186112 - Get rid of the #define'd constants in BMPFileHeaders.h. r=tn (c18103f391)
53 lines
1.9 KiB
C
53 lines
1.9 KiB
C
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/* Implements the C99 <inttypes.h> interface. */
|
|
|
|
#ifndef mozilla_IntegerPrintfMacros_h_
|
|
#define mozilla_IntegerPrintfMacros_h_
|
|
|
|
/*
|
|
* These macros should not be used with the NSPR printf-like functions or their
|
|
* users, e.g. mozilla/Logging.h. If you need to use NSPR's facilities, see the
|
|
* comment on supported formats at the top of nsprpub/pr/include/prprf.h.
|
|
*/
|
|
|
|
/*
|
|
* scanf is a footgun: if the input number exceeds the bounds of the target
|
|
* type, behavior is undefined (in the compiler sense: that is, this code
|
|
* could overwrite your hard drive with zeroes):
|
|
*
|
|
* uint8_t u;
|
|
* sscanf("256", "%" SCNu8, &u); // BAD
|
|
*
|
|
* For this reason, *never* use the SCN* macros provided by this header!
|
|
*/
|
|
|
|
#include <inttypes.h>
|
|
|
|
/*
|
|
* Fix up Android's broken [u]intptr_t inttype macros. Android's PRI*PTR
|
|
* macros are defined as "ld", but sizeof(long) is 8 and sizeof(intptr_t)
|
|
* is 4 on 32-bit Android. TestTypeTraits.cpp asserts that these new macro
|
|
* definitions match the actual type sizes seen at compile time.
|
|
*/
|
|
#if defined(ANDROID) && !defined(__LP64__)
|
|
# undef PRIdPTR /* intptr_t */
|
|
# define PRIdPTR "d" /* intptr_t */
|
|
# undef PRIiPTR /* intptr_t */
|
|
# define PRIiPTR "i" /* intptr_t */
|
|
# undef PRIoPTR /* uintptr_t */
|
|
# define PRIoPTR "o" /* uintptr_t */
|
|
# undef PRIuPTR /* uintptr_t */
|
|
# define PRIuPTR "u" /* uintptr_t */
|
|
# undef PRIxPTR /* uintptr_t */
|
|
# define PRIxPTR "x" /* uintptr_t */
|
|
# undef PRIXPTR /* uintptr_t */
|
|
# define PRIXPTR "X" /* uintptr_t */
|
|
#endif
|
|
|
|
#endif /* mozilla_IntegerPrintfMacros_h_ */
|