зеркало из https://github.com/mozilla/pjs.git
replace ANSI true/false with PR_TRUE; sorry about that.
This commit is contained in:
Родитель
c048c8cfac
Коммит
be38ccfc5a
|
@ -960,12 +960,12 @@ nsCString& nsCString::Append(PRInt32 anInteger,PRInt32 aRadix) {
|
||||||
else theInt=(int)~(theInt-1);
|
else theInt=(int)~(theInt-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isfirst=true;
|
PRBool isfirst=PR_TRUE;
|
||||||
while(mask1>=1) {
|
while(mask1>=1) {
|
||||||
PRInt32 div=theInt/mask1;
|
PRInt32 div=theInt/mask1;
|
||||||
if((div) || (!isfirst)) {
|
if((div) || (!isfirst)) {
|
||||||
buf[charpos++]="0123456789abcdef"[div];
|
buf[charpos++]="0123456789abcdef"[div];
|
||||||
isfirst=false;
|
isfirst=PR_FALSE;
|
||||||
}
|
}
|
||||||
theInt-=div*mask1;
|
theInt-=div*mask1;
|
||||||
mask1/=aRadix;
|
mask1/=aRadix;
|
||||||
|
|
|
@ -1130,12 +1130,12 @@ nsString& nsString::Append(PRInt32 anInteger,PRInt32 aRadix) {
|
||||||
else theInt=(int)~(theInt-1);
|
else theInt=(int)~(theInt-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isfirst=true;
|
PRBool isfirst=PR_TRUE;
|
||||||
while(mask1>=1) {
|
while(mask1>=1) {
|
||||||
PRInt32 div=theInt/mask1;
|
PRInt32 div=theInt/mask1;
|
||||||
if((div) || (!isfirst)) {
|
if((div) || (!isfirst)) {
|
||||||
buf[charpos++]="0123456789abcdef"[div];
|
buf[charpos++]="0123456789abcdef"[div];
|
||||||
isfirst=false;
|
isfirst=PR_FALSE;
|
||||||
}
|
}
|
||||||
theInt-=div*mask1;
|
theInt-=div*mask1;
|
||||||
mask1/=aRadix;
|
mask1/=aRadix;
|
||||||
|
|
|
@ -960,12 +960,12 @@ nsCString& nsCString::Append(PRInt32 anInteger,PRInt32 aRadix) {
|
||||||
else theInt=(int)~(theInt-1);
|
else theInt=(int)~(theInt-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isfirst=true;
|
PRBool isfirst=PR_TRUE;
|
||||||
while(mask1>=1) {
|
while(mask1>=1) {
|
||||||
PRInt32 div=theInt/mask1;
|
PRInt32 div=theInt/mask1;
|
||||||
if((div) || (!isfirst)) {
|
if((div) || (!isfirst)) {
|
||||||
buf[charpos++]="0123456789abcdef"[div];
|
buf[charpos++]="0123456789abcdef"[div];
|
||||||
isfirst=false;
|
isfirst=PR_FALSE;
|
||||||
}
|
}
|
||||||
theInt-=div*mask1;
|
theInt-=div*mask1;
|
||||||
mask1/=aRadix;
|
mask1/=aRadix;
|
||||||
|
|
|
@ -1130,12 +1130,12 @@ nsString& nsString::Append(PRInt32 anInteger,PRInt32 aRadix) {
|
||||||
else theInt=(int)~(theInt-1);
|
else theInt=(int)~(theInt-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isfirst=true;
|
PRBool isfirst=PR_TRUE;
|
||||||
while(mask1>=1) {
|
while(mask1>=1) {
|
||||||
PRInt32 div=theInt/mask1;
|
PRInt32 div=theInt/mask1;
|
||||||
if((div) || (!isfirst)) {
|
if((div) || (!isfirst)) {
|
||||||
buf[charpos++]="0123456789abcdef"[div];
|
buf[charpos++]="0123456789abcdef"[div];
|
||||||
isfirst=false;
|
isfirst=PR_FALSE;
|
||||||
}
|
}
|
||||||
theInt-=div*mask1;
|
theInt-=div*mask1;
|
||||||
mask1/=aRadix;
|
mask1/=aRadix;
|
||||||
|
|
|
@ -960,12 +960,12 @@ nsCString& nsCString::Append(PRInt32 anInteger,PRInt32 aRadix) {
|
||||||
else theInt=(int)~(theInt-1);
|
else theInt=(int)~(theInt-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isfirst=true;
|
PRBool isfirst=PR_TRUE;
|
||||||
while(mask1>=1) {
|
while(mask1>=1) {
|
||||||
PRInt32 div=theInt/mask1;
|
PRInt32 div=theInt/mask1;
|
||||||
if((div) || (!isfirst)) {
|
if((div) || (!isfirst)) {
|
||||||
buf[charpos++]="0123456789abcdef"[div];
|
buf[charpos++]="0123456789abcdef"[div];
|
||||||
isfirst=false;
|
isfirst=PR_FALSE;
|
||||||
}
|
}
|
||||||
theInt-=div*mask1;
|
theInt-=div*mask1;
|
||||||
mask1/=aRadix;
|
mask1/=aRadix;
|
||||||
|
|
|
@ -1130,12 +1130,12 @@ nsString& nsString::Append(PRInt32 anInteger,PRInt32 aRadix) {
|
||||||
else theInt=(int)~(theInt-1);
|
else theInt=(int)~(theInt-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isfirst=true;
|
PRBool isfirst=PR_TRUE;
|
||||||
while(mask1>=1) {
|
while(mask1>=1) {
|
||||||
PRInt32 div=theInt/mask1;
|
PRInt32 div=theInt/mask1;
|
||||||
if((div) || (!isfirst)) {
|
if((div) || (!isfirst)) {
|
||||||
buf[charpos++]="0123456789abcdef"[div];
|
buf[charpos++]="0123456789abcdef"[div];
|
||||||
isfirst=false;
|
isfirst=PR_FALSE;
|
||||||
}
|
}
|
||||||
theInt-=div*mask1;
|
theInt-=div*mask1;
|
||||||
mask1/=aRadix;
|
mask1/=aRadix;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче