Closed
Bug 216588
Opened 21 years ago
Closed 16 years ago
Remove GOTOs from nsMsgUtils.cpp
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mbockelkamp, Unassigned)
References
Details
Attachments
(1 file)
2.17 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030812
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030812
Remove GOTOs from nsMsgUtils.cpp
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Updated•21 years ago
|
Attachment #130017 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #130017 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•21 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•21 years ago
|
||
Comment on attachment 130017 [details] [diff] [review]
Patch v1
You can't request a SR from neil. Please look at the SR list first
Attachment #130017 -
Flags: superreview?(neil.parkwaycc.co.uk) → superreview?(scott)
Comment 3•21 years ago
|
||
No. Don't do this. You've just increased codesize and reduced readability, and
for what? the goto's were perfectly happy the way they were.
If you really want to kill them, then do something like this instead.
while(1) // or, |for (;;)|
{
....
continue; // used to be |goto AGAIN;|
....
continue; // used to be |goto AGAIN;|
....
break;
}
but, why on earth bother?
Reporter | ||
Comment 4•21 years ago
|
||
The problem I have with GOTOs is that you have to look for the calls, instead of
just looking for the matching } in a "normal" loop. I knew this would increasee
the code size, but I think it's only a few bytes. If you wish to keep the GOTOs,
then one could perhaps do this:
AGAIN: //called from Lines x and y
This would be bad if the file is modified, because updating the line numbers
will be forgotten. So perhaps this way:
AGAIN: //called from two places
...
//no more calls to AGAIN from here on
This would also speed up reading the code.
Reporter | ||
Updated•21 years ago
|
Attachment #130017 -
Flags: superreview?(mscott)
Attachment #130017 -
Flags: review?(neil.parkwaycc.co.uk)
Updated•20 years ago
|
Product: MailNews → Core
Comment 5•17 years ago
|
||
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Reporter | ||
Comment 7•16 years ago
|
||
Let's resolve this old monster. WONTFIX.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Assignee | ||
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•