Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
This commit is contained in:
@@ -252,10 +252,10 @@ static void
|
||||
MarkLayersHidden(Layer* aLayer, const nsIntRect& aClipRect,
|
||||
const nsIntRect& aDirtyRect,
|
||||
nsIntRegion& aOpaqueRegion,
|
||||
PRUint32 aFlags)
|
||||
uint32_t aFlags)
|
||||
{
|
||||
nsIntRect newClipRect(aClipRect);
|
||||
PRUint32 newFlags = aFlags;
|
||||
uint32_t newFlags = aFlags;
|
||||
|
||||
// Allow aLayer or aLayer's descendants to cover underlying layers
|
||||
// only if it's opaque.
|
||||
@@ -354,7 +354,7 @@ ApplyDoubleBuffering(Layer* aLayer, const nsIntRect& aVisibleRect)
|
||||
if (aLayer->GetParent()->GetEffectiveTransform().CanDraw2D(&tr)) {
|
||||
NS_ASSERTION(!tr.HasNonIntegerTranslation(),
|
||||
"Parent can only have an integer translation");
|
||||
cr += nsIntPoint(PRInt32(tr.x0), PRInt32(tr.y0));
|
||||
cr += nsIntPoint(int32_t(tr.x0), int32_t(tr.y0));
|
||||
} else {
|
||||
NS_ERROR("Parent can only have an integer translation");
|
||||
}
|
||||
@@ -851,7 +851,7 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
nsAutoTArray<Layer*, 12> children;
|
||||
container->SortChildrenBy3DZOrder(children);
|
||||
|
||||
for (PRUint32 i = 0; i < children.Length(); i++) {
|
||||
for (uint32_t i = 0; i < children.Length(); i++) {
|
||||
PaintLayer(groupTarget, children.ElementAt(i), aCallback, aCallbackData, &readback);
|
||||
if (mTransactionIncomplete)
|
||||
break;
|
||||
@@ -967,7 +967,7 @@ BasicShadowLayerManager::~BasicShadowLayerManager()
|
||||
MOZ_COUNT_DTOR(BasicShadowLayerManager);
|
||||
}
|
||||
|
||||
PRInt32
|
||||
int32_t
|
||||
BasicShadowLayerManager::GetMaxTextureSize() const
|
||||
{
|
||||
if (HasShadowManager()) {
|
||||
|
||||
Reference in New Issue
Block a user