Closed
Bug 517553
Opened 16 years ago
Closed 3 years ago
Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE'
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: lusian, Assigned: lusian)
References
()
Details
Attachments
(6 files, 26 obsolete files)
|
58.14 KB,
patch
|
Details | Diff | Splinter Review | |
|
65.08 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.99 KB,
patch
|
joe
:
review-
|
Details | Diff | Splinter Review |
|
58.35 KB,
patch
|
Details | Diff | Splinter Review | |
|
8.99 KB,
patch
|
Details | Diff | Splinter Review | |
|
9.07 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20090917 Minefield/3.7a1pre (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20090917 Minefield/3.7a1pre (.NET CLR 3.5.30729)
Enforce Mozilla Coding Style Guide
Do not compare == PR_TRUE or PR_FALSE. Use (x) or (!x) instead. == PR_TRUE, in fact, is *different* from if (x)!
Related to Bug 228448
Reproducible: Didn't try
| Assignee | ||
Comment 1•16 years ago
|
||
| Assignee | ||
Updated•16 years ago
|
Comment 2•16 years ago
|
||
Thanks for the patch. You should find someone who is willed to review your patch.
Assignee: nobody → lusian
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
| Assignee | ||
Updated•16 years ago
|
Attachment #401513 -
Flags: review?
| Assignee | ||
Updated•16 years ago
|
Attachment #401513 -
Flags: review?
Comment 3•16 years ago
|
||
As talked on IRC there are tryserver builds available here:
https://build.mozilla.org/tryserver-builds/hskupin@mozilla.com-1253305907/
Please check if everything works. Afterward you have to ask for review.
| Assignee | ||
Updated•16 years ago
|
Attachment #401513 -
Flags: review?(shaver)
Attachment #401513 -
Flags: review?(Olli.Pettay)
Attachment #401513 -
Flags: review?(Jan.Varga)
Comment 4•16 years ago
|
||
Comment on attachment 401513 [details] [diff] [review]
Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE' in mozilla-central
I will review the NSPR and NSS changes in this patch.
Attachment #401513 -
Flags: review?(wtc)
| Assignee | ||
Comment 5•16 years ago
|
||
I will break the patch into smaller parts.
Attachment #401513 -
Attachment is obsolete: true
Attachment #409851 -
Flags: review?(wtc)
Attachment #401513 -
Flags: review?(wtc)
Attachment #401513 -
Flags: review?(shaver)
Attachment #401513 -
Flags: review?(Olli.Pettay)
Attachment #401513 -
Flags: review?(Jan.Varga)
| Assignee | ||
Comment 6•16 years ago
|
||
Attachment #409852 -
Flags: review?(wtc)
| Assignee | ||
Comment 7•16 years ago
|
||
Attachment #409853 -
Flags: review?(cbiesinger)
| Assignee | ||
Comment 8•16 years ago
|
||
Attachment #409854 -
Flags: review?(mozbugz)
| Assignee | ||
Comment 9•16 years ago
|
||
Attachment #409855 -
Flags: review?(shaver)
| Assignee | ||
Comment 10•16 years ago
|
||
Attachment #409856 -
Flags: review?(darin.moz)
| Assignee | ||
Comment 11•16 years ago
|
||
Attachment #409857 -
Flags: review?
| Assignee | ||
Updated•16 years ago
|
Attachment #409857 -
Flags: review? → review?(robert.bugzilla)
| Assignee | ||
Comment 12•16 years ago
|
||
Attachment #409858 -
Flags: review?(axel)
| Assignee | ||
Comment 13•16 years ago
|
||
Attachment #409862 -
Flags: review?(jband_mozilla)
| Assignee | ||
Comment 14•16 years ago
|
||
Attachment #409863 -
Flags: review?(Jan.Varga)
| Assignee | ||
Comment 15•16 years ago
|
||
Attachment #409864 -
Flags: review?(jmathies)
| Assignee | ||
Comment 16•16 years ago
|
||
Attachment #409865 -
Flags: review?(jwatt)
| Assignee | ||
Comment 17•16 years ago
|
||
Attachment #409867 -
Flags: review?(benjamin)
| Assignee | ||
Comment 18•16 years ago
|
||
Attachment #409868 -
Flags: review?(pavlov)
Updated•16 years ago
|
Attachment #409865 -
Flags: review?(jwatt) → review+
| Assignee | ||
Comment 19•16 years ago
|
||
Attachment #409874 -
Flags: review?(hyatt)
| Assignee | ||
Comment 20•16 years ago
|
||
Attachment #409875 -
Flags: review?(smontagu)
Updated•16 years ago
|
Attachment #409875 -
Flags: review?(smontagu) → review+
Updated•16 years ago
|
Attachment #409858 -
Flags: review?(axel) → review+
Updated•16 years ago
|
Attachment #409864 -
Flags: review?(jmathies) → review+
Updated•16 years ago
|
Attachment #409863 -
Flags: review?(Jan.Varga) → review+
Updated•16 years ago
|
Attachment #409867 -
Flags: review?(benjamin) → review+
Updated•16 years ago
|
Attachment #409855 -
Flags: review?(shaver) → review+
Updated•16 years ago
|
Attachment #409856 -
Flags: review?(darin.moz) → review?(cbiesinger)
Updated•16 years ago
|
Attachment #409862 -
Flags: review?(jband_mozilla) → review+
Updated•16 years ago
|
Attachment #409874 -
Flags: review?(hyatt) → review?(bzbarsky)
Updated•16 years ago
|
Attachment #409874 -
Flags: review?(bzbarsky) → review+
Comment 21•16 years ago
|
||
Comment on attachment 409856 [details] [diff] [review]
netwerk
+++ b/netwerk/cookie/src/nsCookie.h
I'd prefer you not to change this file... you're storing a PRBool (i.e. a 32-bit integer) in a PRPackedBool (an 8-bit integer). so, if someone passes a value that's not true or false to this function, this risks doing the wrong thing.
Attachment #409856 -
Flags: review?(cbiesinger) → review+
Comment 22•16 years ago
|
||
Comment on attachment 409853 [details] [diff] [review]
widget beos
+++ b/widget/src/beos/nsDragService.cpp
- aCanDrop == PR_TRUE?"TRUE":"FALSE"));
+ aCanDrop?"TRUE":"FALSE"));
while you're here, can you add spaces around ? and : ?
+++ b/widget/src/beos/nsPopupWindow.cpp
+ if (bState && mView && mView->Window() != NULL )
also, can you remove the space before the ) ?
Attachment #409853 -
Flags: review?(cbiesinger) → review+
Comment 23•16 years ago
|
||
out of curiosity, why didn't you use bug 228448 for these patches? (at least the non-toolkit ones)
| Assignee | ||
Comment 24•16 years ago
|
||
Serge Gautherie suggested to open my own bug blocking bug 228448.
| Assignee | ||
Comment 25•16 years ago
|
||
Attachment #409856 -
Attachment is obsolete: true
| Assignee | ||
Comment 26•16 years ago
|
||
Attachment #409853 -
Attachment is obsolete: true
Comment 27•16 years ago
|
||
Comment on attachment 409854 [details] [diff] [review]
widget gtk2
>- PRBool allocate = (GlobalPrinters::GetInstance()->PrintersAreAllocated() == PR_FALSE);
>+ PRBool allocate = !(GlobalPrinters::GetInstance()->PrintersAreAllocated());
The parentheses are not necessary here.
Attachment #409854 -
Flags: review?(mozbugz) → review+
| Assignee | ||
Comment 28•16 years ago
|
||
Attachment #409854 -
Attachment is obsolete: true
| Assignee | ||
Comment 29•16 years ago
|
||
Attachment #410181 -
Flags: review?(neil)
| Assignee | ||
Comment 30•16 years ago
|
||
Attachment #410183 -
Flags: review?(birtles)
| Assignee | ||
Comment 31•16 years ago
|
||
Attachment #410184 -
Flags: review?(jst)
| Assignee | ||
Comment 32•16 years ago
|
||
Attachment #410189 -
Flags: review?(hsivonen)
| Assignee | ||
Comment 33•16 years ago
|
||
Attachment #410193 -
Flags: review?(roc)
Updated•16 years ago
|
Attachment #410183 -
Flags: review?(birtles) → review+
| Assignee | ||
Comment 34•16 years ago
|
||
Attachment #410195 -
Flags: review?(axel)
| Assignee | ||
Comment 35•16 years ago
|
||
Attachment #410196 -
Flags: review?(doug.turner)
| Assignee | ||
Comment 36•16 years ago
|
||
Attachment #410198 -
Flags: review?(dbaron)
Updated•16 years ago
|
Attachment #410195 -
Flags: review?(axel) → review+
| Assignee | ||
Updated•16 years ago
|
Attachment #409857 -
Flags: review?(robert.bugzilla) → review?(wuno)
Attachment #410193 -
Flags: review?(roc) → review+
Comment 37•16 years ago
|
||
Comment on attachment 410189 [details] [diff] [review]
dom
Looks good to me, but I'm not really a module peer for these files.
Attachment #410189 -
Flags: review?(hsivonen) → review+
Updated•16 years ago
|
Product: Firefox → Core
QA Contact: general → general
Attachment #410198 -
Flags: review?(dbaron) → review+
Updated•16 years ago
|
Attachment #410196 -
Flags: review?(doug.turner) → review+
Updated•16 years ago
|
Attachment #410181 -
Flags: review?(neil) → review+
Comment 38•16 years ago
|
||
Comment on attachment 409857 [details] [diff] [review]
toolkit
looks good, I don't know anything from BeOS but I've had a look on the BeOS widget patch that got already r+
Attachment #409857 -
Flags: review?(wuno) → review+
| Assignee | ||
Comment 39•16 years ago
|
||
I would like check-in this patch before it gets too old.
Attachment #409855 -
Attachment is obsolete: true
Attachment #409857 -
Attachment is obsolete: true
Attachment #409858 -
Attachment is obsolete: true
Attachment #409862 -
Attachment is obsolete: true
Attachment #409863 -
Attachment is obsolete: true
Attachment #409864 -
Attachment is obsolete: true
Attachment #409865 -
Attachment is obsolete: true
Attachment #409867 -
Attachment is obsolete: true
Attachment #409874 -
Attachment is obsolete: true
Attachment #409875 -
Attachment is obsolete: true
Attachment #410027 -
Attachment is obsolete: true
Attachment #410030 -
Attachment is obsolete: true
Attachment #410055 -
Attachment is obsolete: true
Attachment #410181 -
Attachment is obsolete: true
Attachment #410183 -
Attachment is obsolete: true
Attachment #410189 -
Attachment is obsolete: true
Attachment #410193 -
Attachment is obsolete: true
Attachment #410195 -
Attachment is obsolete: true
Attachment #410196 -
Attachment is obsolete: true
Attachment #410198 -
Attachment is obsolete: true
| Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 40•16 years ago
|
||
Sadly, the trunk didn't reopen in time, and it's badly bit-rotted.
Keywords: checkin-needed
| Assignee | ||
Comment 41•15 years ago
|
||
Attachment #413552 -
Attachment is obsolete: true
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Keywords: checkin-needed
Updated•15 years ago
|
Attachment #425658 -
Attachment description: check-in please → check-in please
[Checkin: Comment 42]
Reopening since there are more patches outstanding.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•15 years ago
|
Attachment #410184 -
Flags: review?(jst) → review+
| Assignee | ||
Comment 44•15 years ago
|
||
Attachment #410184 -
Attachment is obsolete: true
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 45•15 years ago
|
||
Question: When testing this, did you see any crashes on Windows? We hit a new crash on last night's nightly with a heavy amount of hits and we're trying to find the regression range.
Comment 46•15 years ago
|
||
Comment on attachment 425924 [details] [diff] [review]
embedding updated [checkin: Comment 46]
http://hg.mozilla.org/mozilla-central/rev/e0f83c3ba635
Attachment #425924 -
Attachment description: embedding updated, checkin please → embedding updated [checkin: Comment 46]
Updated•15 years ago
|
Keywords: checkin-needed
Comment 47•15 years ago
|
||
I am working on this bug. I have created a patch that makes these changes to a single file. If the changes are good, I will continue making them elsewhere.
Comment 48•15 years ago
|
||
Comment 49•15 years ago
|
||
(In reply to comment #48)
> Fixes in nsprpub/pr/src/md/windows/ntio.c
Many of these changes look similar to changes in attachment 409851 [details] [diff] [review], which hasn't received much attention.
NSS and NSPR are third party libraries from Gecko's perspective.
Patches might receive more attention in an upstream bug report (but they might not).
Updated•15 years ago
|
Attachment #409868 -
Flags: review?(pavlov) → review?(joe)
Comment 50•15 years ago
|
||
Comment on attachment 409868 [details] [diff] [review]
graphics
This patch needs to be updated to latest mozilla-central. Most of these files have been moved, and some no longer exist. However, in general, it looks good, with one caveat that I list below.
>diff --git a/gfx/thebes/public/gfxFont.h b/gfx/thebes/public/gfxFont.h
> PRUint32 SetCanBreakBefore(PRBool aCanBreakBefore) {
>- NS_ASSERTION(aCanBreakBefore == PR_FALSE || aCanBreakBefore == PR_TRUE,
>+ NS_ASSERTION(!aCanBreakBefore || aCanBreakBefore,
> "Bogus break-before value!");
This is actually checking whether aCanBreakBefore is PR_FALSE or PR_TRUE, so we can't change this assertion.
Attachment #409868 -
Flags: review?(joe) → review-
Comment 51•15 years ago
|
||
(In reply to comment #50)
> This is actually checking whether aCanBreakBefore is PR_FALSE or PR_TRUE, so we
> can't change this assertion.
Yet adding an explicit comment would be an improvement.
Comment 52•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:overholt, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: lusian → nobody
Flags: needinfo?(overholt)
Comment 53•3 years ago
|
||
Some patches landed a long time ago in this bug, and PR_TRUE and PR_FALSE are long gone, so let's mark this fixed.
Assignee: nobody → lusian
Status: REOPENED → RESOLVED
Closed: 15 years ago → 3 years ago
Flags: needinfo?(overholt)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•