Bug 820219 - Remove the PR_ prefix for a few PR_[U]INT32_MAX that has been added since bug 791906. r=roc

This commit is contained in:
Mats Palmgren 2012-12-11 16:45:50 +01:00
parent 5dea188129
commit fcd6628cae
4 changed files with 6 additions and 7 deletions

View File

@ -7,8 +7,7 @@
#ifndef DirectionalityUtils_h___
#define DirectionalityUtils_h___
#include "prtypes.h"
#include "mozilla/StandardInteger.h"
#include "nscore.h"
class nsIContent;
class nsIDocument;

View File

@ -273,7 +273,7 @@ inline static bool NodeAffectsDirAutoAncestor(nsINode* aTextNode)
* first-strong algorithm defined in http://unicode.org/reports/tr9/#P2
*
* @param[out] aFirstStrong the offset to the first character in the string with
* strong directionality, or PR_UINT32_MAX if there is none (return
* strong directionality, or UINT32_MAX if there is none (return
value is eDir_NotSet).
* @return the directionality of the string
*/
@ -304,7 +304,7 @@ GetDirectionFromText(const PRUnichar* aText, const uint32_t aLength,
}
if (aFirstStrong) {
*aFirstStrong = PR_UINT32_MAX;
*aFirstStrong = UINT32_MAX;
}
return eDir_NotSet;
}
@ -330,7 +330,7 @@ GetDirectionFromText(const char* aText, const uint32_t aLength,
}
if (aFirstStrong) {
*aFirstStrong = PR_UINT32_MAX;
*aFirstStrong = UINT32_MAX;
}
return eDir_NotSet;
}

View File

@ -335,7 +335,7 @@ nsDOMDataChannel::GetSendParams(nsIVariant* aData, nsCString& aStringOut,
uint64_t blobLen;
rv = blob->GetSize(&blobLen);
NS_ENSURE_SUCCESS(rv, rv);
if (blobLen > PR_UINT32_MAX) {
if (blobLen > UINT32_MAX) {
return NS_ERROR_FILE_TOO_BIG;
}
aOutgoingLength = static_cast<uint32_t>(blobLen);

View File

@ -106,7 +106,7 @@ GenerateRandomBytes(uint32_t aSize,
// On Unix, we'll just read in from /dev/urandom.
#elif defined(XP_UNIX)
NS_ENSURE_ARG_MAX(aSize, PR_INT32_MAX);
NS_ENSURE_ARG_MAX(aSize, INT32_MAX);
PRFileDesc* urandom = PR_Open("/dev/urandom", PR_RDONLY, 0);
nsresult rv = NS_ERROR_FAILURE;
if (urandom) {