Open
Bug 456388
Opened 15 years ago
Updated 6 months ago
Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree
Categories
(Core :: General, defect)
Core
General
Tracking
()
NEW
mozilla1.9.1b2
People
(Reporter: Swatinem, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(4 files, 3 obsolete files)
86.96 KB,
patch
|
wtc
:
review-
|
Details | Diff | Splinter Review |
251.47 KB,
patch
|
Swatinem
:
review+
Swatinem
:
superreview+
|
Details | Diff | Splinter Review |
3.36 KB,
patch
|
brendan
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
32.91 KB,
patch
|
Swatinem
:
review+
Swatinem
:
superreview+
|
Details | Diff | Splinter Review |
Similar to bug 398946. Once bug 433790 is done and WIN16 is removed, all architectures define those macros the same so they can be removed. PR_CALLBACK = nothing PR_CALLBACK_DECL = nothing PR_STATIC_CALLBACK() = static Core Gecko has dropped support for WIN16 long ago so it could take a headstart here and clean those macros up before NSPR.
Comment 1•15 years ago
|
||
We need to keep the trivial definitions of these macros around for backward compatibility. Mozilla is not the only user of NSPR, so there may be non-Mozilla code out there that uses these macros.
Reporter | ||
Comment 2•15 years ago
|
||
This patch removes nspr internal usage of those macros, they are however still defined in prtypes.h. The patch is based on top of bug #433790.
Assignee: nobody → arpad.borsos
Status: NEW → ASSIGNED
Attachment #340739 -
Flags: superreview?(wtc)
Attachment #340739 -
Flags: review?(wtc)
Reporter | ||
Comment 3•15 years ago
|
||
This patch removes the macros from the complete mozilla-central tree (minus nsprpub and security). I hope brendan is the right peer for this tree-wide patch.
Attachment #340741 -
Flags: superreview?(brendan)
Attachment #340741 -
Flags: review?(brendan)
Comment 4•15 years ago
|
||
Patch looks fine at a glance, main thing is warning and error free (net of existing warnings) compilation. Be great if we could be sure statically, but probably not worth it. Cc'ing static analysis folks just in case this is of interest. /be
Updated•15 years ago
|
Attachment #340741 -
Flags: superreview?(brendan)
Attachment #340741 -
Flags: superreview+
Attachment #340741 -
Flags: review?(brendan)
Attachment #340741 -
Flags: review+
Reporter | ||
Updated•15 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 5•15 years ago
|
||
Updated to work on top of nsDocument changes made by bug 433616. r/sr+ as per comment 4. Bug 433616 added some more static callbacks but I will do them in a followup patch.
Attachment #340741 -
Attachment is obsolete: true
Attachment #342268 -
Flags: superreview+
Attachment #342268 -
Flags: review+
Comment 6•15 years ago
|
||
Comment on attachment 340739 [details] [diff] [review] remove macro usage from nspr Thanks for the patch. We need to keep the definitions of these macros in prtypes.h for backward compatibility. There are many NSPR users outside the Mozilla source tree. I think we don't need to remove the use of these macros from old code. NSPR is now in a stable state. I often read diffs between NSPR releases to track down a regression. So any noise in the diffs makes the maintenance of NSPR difficult.
Attachment #340739 -
Flags: superreview?(wtc)
Attachment #340739 -
Flags: review?(wtc)
Attachment #340739 -
Flags: review-
Reporter | ||
Comment 7•15 years ago
|
||
(In reply to comment #6) > (From update of attachment 340739 [details] [diff] [review]) > We need to keep the definitions of these macros in prtypes.h for > backward compatibility. There are many NSPR users outside the > Mozilla source tree. The patch still keeps the definitions. It just moves the defines from the platform specific ifdefs into a non platform specific part. I also understand your concerns about maintaining the code. However my personal opinion is that less (confusing) macros are helping the learning curve of potential new contributors.
Comment 8•15 years ago
|
||
Comment on attachment 342268 [details] [diff] [review] unbitrot for mozilla-central [Checkin: Comment 8] http://hg.mozilla.org/mozilla-central/rev/eee86e5513ad
Attachment #342268 -
Attachment description: unbitrot for mozilla-central → unbitrot for mozilla-central
[Checkin: Comment 8]
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Keywords: checkin-needed
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b2
Reporter | ||
Comment 9•15 years ago
|
||
Thanks for the checkin Serge. However, this is not yet fixed. The macros are still used inside NSS (security/) and probably in comm-central. I haven't checked in comm-central yet. And I will also do a followup patch for anything I missed inside m-c. Is there any chance such a patch could get into NSS at all or should I rather save the time for something else?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 10•15 years ago
|
||
Patch cleans up the macros from nss.
Attachment #343868 -
Flags: review?(wtc)
Reporter | ||
Comment 11•15 years ago
|
||
A followup patch that cleans up all the remaining macros from mozilla-central
Attachment #343869 -
Flags: superreview?(brendan)
Attachment #343869 -
Flags: review?(brendan)
Comment 12•15 years ago
|
||
Comment on attachment 343869 [details] [diff] [review] followup for mozilla-central [Checkin: Comment 13] r/sr=me. /be
Attachment #343869 -
Flags: superreview?(brendan)
Attachment #343869 -
Flags: superreview+
Attachment #343869 -
Flags: review?(brendan)
Attachment #343869 -
Flags: review+
Reporter | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 13•15 years ago
|
||
Comment on attachment 343869 [details] [diff] [review] followup for mozilla-central [Checkin: Comment 13] http://hg.mozilla.org/mozilla-central/rev/c53251d62ddf
Updated•15 years ago
|
Keywords: checkin-needed
Reporter | ||
Updated•15 years ago
|
Attachment #343869 -
Attachment description: followup for mozilla-central → followup for mozilla-central [Checkin: Comment 13]
Reporter | ||
Comment 14•15 years ago
|
||
Dan: I hope you are the right peer for such a comm-central wide (but mostly mailnews) patch.
Attachment #344138 -
Flags: superreview?(dmose)
Attachment #344138 -
Flags: review?(dmose)
Comment 15•15 years ago
|
||
Comment on attachment 344138 [details] [diff] [review] remove macro usage from comm-central Patch much appreciated; thanks Arpad!
Attachment #344138 -
Flags: superreview?(dmose)
Attachment #344138 -
Flags: superreview+
Attachment #344138 -
Flags: review?(dmose)
Attachment #344138 -
Flags: review+
Updated•15 years ago
|
Keywords: checkin-needed
Comment 16•15 years ago
|
||
Comment on attachment 344138 [details] [diff] [review] remove macro usage from comm-central "abort: patch failed to apply"
Comment 17•15 years ago
|
||
(In reply to comment #9) > However, this is not yet fixed. In such cases, you can use the whiteboard to tell which patch to check in and/or to leave the bug open, etc.
Status: REOPENED → ASSIGNED
Keywords: checkin-needed
Reporter | ||
Comment 18•15 years ago
|
||
Updated to tip, r/sr+ as per comment 15.
Attachment #344138 -
Attachment is obsolete: true
Attachment #345066 -
Flags: superreview+
Attachment #345066 -
Flags: review+
Updated•15 years ago
|
Keywords: checkin-needed
Comment 19•15 years ago
|
||
Comment on attachment 345066 [details] [diff] [review] cleanup, comm-central, updated to tip [Checkin: Comment 19] http://hg.mozilla.org/comm-central/rev/ea049a1644bd
Attachment #345066 -
Attachment description: cleanup, comm-central, updated to tip → cleanup, comm-central, updated to tip
[Checkin: Comment 19]
Updated•15 years ago
|
Keywords: checkin-needed
Reporter | ||
Updated•9 years ago
|
Attachment #343868 -
Attachment is obsolete: true
Attachment #343868 -
Flags: review?(wtc)
Reporter | ||
Updated•9 years ago
|
Assignee: arpad.borsos → nobody
Comment 21•5 years ago
|
||
No assignee, updating the status.
Updated•6 months ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•