Closed
Bug 43004
Opened 26 years ago
Closed 17 years ago
C bindings for XPCOM
Categories
(Core :: XPCOM, enhancement, P3)
Core
XPCOM
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dbarth, Assigned: dbarth)
Details
(Keywords: helpwanted)
Attachments
(2 files)
|
24.86 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.55 KB,
patch
|
Details | Diff | Splinter Review |
xpidl and XPCOM do not support C bindings
| Assignee | ||
Comment 1•26 years ago
|
||
| Assignee | ||
Comment 2•26 years ago
|
||
Comment 3•26 years ago
|
||
adding patch keyword and setting status to New
Comment 4•26 years ago
|
||
heck of a patch, wouldn't want it to rot. can we get some word on it, please?
Comment 5•26 years ago
|
||
David,
Clearly you put some serious work into this. I'm not particularly against the
addition of C interface mappings, but since this will inevitably impact the
project - and writers of xpidl - I think that you should provide additional
information about why this should be added, what additional code is likely to
follow (and how that will impact the codebase), and to what extent you intend to
maintain this code.
From my quick look at the patches I have two specific additional points that I'd
like to see addressed:
1) In the second patch I don't see any conditional compile or
"#ifdef __cplusplus" protection of the "#include "vtablemagic.h"" line. As I
read it, checking it in as-is will break all the non-i386 platforms. Clearly
this needs to be fixed first.
2) In the xpidl patch you've opted to emit code for the C mappings into the same
headers as used for the C++ mappings. This is OK. However, I think that it will
be necessary to address the issue of "%{ C++" blocks. You can not require that
idl authors use only legal C code. I think the best solution here is to
impelement support for "%{ C", "%{ C++", and "%{ C/C++" with the output of each
going into the appropriate places in relation to the "#ifdef __cplusplus"
blocks. You would then need to convert most (perhaps all?) of the existing
"%{ C++" blocks in the idl codebase to "%{ C/C++" AND teach the idl authors
about this change.
Please understand that (AFAIK) no one else needs these mappings and we all have
plenty to do. If you want to get this code in you are going to have to do more
to explain its need, minimize its impact on the rest of the team, explain where
it is leading, and tell us about the plan for maintaining it.
Thanks,
John.
Comment 6•26 years ago
|
||
Adding shaver, the original xpidl auther.
Comment 7•26 years ago
|
||
[SPAM] Marking milestone 'future' as part of nsbeta3 triage.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Comment 8•25 years ago
|
||
Mass-reassigning mccabe's non-JS, non-Rhino bugs to jband (34 total).
Would like to cc mccabe; but the mass-reassign page does not allow this.
I'll leave it up to mccabe to decide if he wants to be cc'ed on these -
Assignee: mike+mozilla → jband
Status: ASSIGNED → NEW
Comment 9•25 years ago
|
||
mass reassign of xpidl bugs to dbradley@netscape.com
Assignee: jband → dbradley
Comment 11•25 years ago
|
||
I dig this (especially in concert with 72083), but the patch needs work and
hasn't seen any response to jband's comments. David, I'm going to give this
back to you, and if you don't want it or can't fix it, please reassign to
nobody@mozilla.org.
Assignee: shaver → dbarth
Target Milestone: Future → ---
Comment 12•17 years ago
|
||
Swinging the axe.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•