Closed
Bug 69469
Opened 24 years ago
Closed 8 years ago
do {} while (PR_FALSE); seems rewritable
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: timeless, Assigned: timeless)
References
()
Details
Attachments
(1 file, 1 obsolete file)
6.04 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Comment 3•24 years ago
|
||
My only concern here is that it changes the flow of code, using returns instead of breaks. The do {} while(PR_FALSE) is being used here as a poor man's exception routine. A goto might work just as well if you want to skip ahead in the case of a failure. In any case, I'm not sure what the effect of the change in flow will be because I can't see the surrounding code. Waterson, layout is your favorite playground. Want to have a look?
Comment 4•24 years ago
|
||
Why is this better?
Comment 5•24 years ago
|
||
> A goto might work just as well if you want to skip ahead in the case of a failure.
Please don't use gotos to skip over code that contains nsCOMPtrs, or other C++
isms. You'll get compiler warnings at best, or crash at worst.
it took me a long time to understand what the while loop's purpose was. early returns otoh are easily understood. [i'll attach a new patch w/ more cleanup]
Updated•23 years ago
|
Attachment #25685 -
Attachment is obsolete: true
Comment 7•23 years ago
|
||
timeless, why are you working on bugs that are way past mozilla1.0 in any conceivable setting of their Target Milestones? Please help with the crucial stuff. /be
Comment 8•23 years ago
|
||
I misread the year in that date on timeless's last comment -- timeless, please accept my apologies. Sorry about that, I have something of a hair trigger around you on 1.0 non-priorities and I just shot my own foot! /be
Updated•15 years ago
|
QA Contact: chrispetersen → layout.misc-code
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•