Closed
Bug 773958
Opened 14 years ago
Closed 14 years ago
Fix calling convention conflicts of NPN_xxx funciton pointer
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: komh, Assigned: komh)
Details
Attachments
(1 file, 3 obsolete files)
|
1.74 KB,
patch
|
jaas
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Build ID: 20120614114901
| Assignee | ||
Comment 1•14 years ago
|
||
NPN_xxx function pointers should use NP_CALLBACK calling convention.
| Assignee | ||
Comment 2•14 years ago
|
||
Attachment #642225 -
Flags: review?(daveryeo)
| Assignee | ||
Updated•14 years ago
|
OS: Windows 7 → OS/2
Hardware: x86_64 → x86
Comment 3•14 years ago
|
||
Comment on attachment 642225 [details] [diff] [review]
Prepend NP_CALLBACK to NPN_xxx function pointers
The NPAPI headers are now imported directly from the npapi-sdk project shared between vendors. Any patches to this need to be directed upstream.
Attachment #642225 -
Flags: review?(daveryeo) → review-
Comment 4•14 years ago
|
||
| Assignee | ||
Comment 5•14 years ago
|
||
Thanks for your advice.
I've submitted a patch for npfunctions.h to the upstream.
And I attach a patch for nsNPAPIPlugin.h, here.
| Assignee | ||
Comment 6•14 years ago
|
||
Attachment #642246 -
Flags: review?(benjamin)
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•14 years ago
|
||
Comment on attachment 642246 [details] [diff] [review]
Remove NP_CALLBACK from nsNPAPIPlugin.h
I thought we removed NP_CALLBACK on purpose, so I'm going to bump this to josh.
Attachment #642246 -
Flags: review?(benjamin) → review?(joshmoz)
Comment on attachment 642246 [details] [diff] [review]
Remove NP_CALLBACK from nsNPAPIPlugin.h
Review of attachment 642246 [details] [diff] [review]:
-----------------------------------------------------------------
We don't need to change this, we're not defining NP_CALLBACK in the NPAPI headers.
Attachment #642246 -
Flags: review?(joshmoz) → review-
| Assignee | ||
Comment 9•14 years ago
|
||
Attachment #651715 -
Flags: review?(joshmoz)
Attachment #651715 -
Flags: review?(joshmoz) → review+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 10•14 years ago
|
||
Comment on attachment 642225 [details] [diff] [review]
Prepend NP_CALLBACK to NPN_xxx function pointers
Please mark obsolete patches as such before adding checkin-needed to a bug.
Attachment #642225 -
Attachment is obsolete: true
Updated•14 years ago
|
Attachment #642246 -
Attachment is obsolete: true
Comment 11•14 years ago
|
||
This also fails to build.
https://tbpl.mozilla.org/php/getParsedLog.php?id=14448366&tree=Try
PluginModuleParent.cpp
cc1plus: warnings being treated as errors
In file included from /builds/slave/try-lnx/build/dom/plugins/ipc/PluginModuleChild.cpp:46:0:
/builds/slave/try-lnx/build/dom/plugins/ipc/../base/nsNPAPIPlugin.h:23:0: error: "NP_CALLBACK" redefined
../../../dist/include/mozilla/plugins/PluginModuleChild.h:46:0: note: this is the location of the previous definition
cc1plus: warnings being treated as errors
In file included from /builds/slave/try-lnx/build/dom/plugins/ipc/PluginScriptableObjectUtils.h:11:0,
from /builds/slave/try-lnx/build/dom/plugins/ipc/PluginIdentifierParent.cpp:12:
/builds/slave/try-lnx/build/dom/plugins/ipc/PluginModuleChild.h:46:0: error: "NP_CALLBACK" redefined
/builds/slave/try-lnx/build/dom/plugins/ipc/../base/nsNPAPIPlugin.h:23:0: note: this is the location of the previous definition
Please include a link to passing Try results when requesting checkin again.
Keywords: checkin-needed
| Assignee | ||
Comment 12•14 years ago
|
||
Attachment #651715 -
Attachment is obsolete: true
Attachment #652662 -
Flags: review?(joshmoz)
Attachment #652662 -
Flags: review?(joshmoz) → review+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 13•14 years ago
|
||
Green on Try. (The Windows test failure is unrelated to this patch)
https://tbpl.mozilla.org/?tree=Try&rev=bb4178a63464
https://hg.mozilla.org/integration/mozilla-inbound/rev/7a1ab48fc876
Comment 14•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•