Closed Bug 43004 Opened 26 years ago Closed 17 years ago

C bindings for XPCOM

Categories

(Core :: XPCOM, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: dbarth, Assigned: dbarth)

Details

(Keywords: helpwanted)

Attachments

(2 files)

xpidl and XPCOM do not support C bindings
adding patch keyword and setting status to New
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch
heck of a patch, wouldn't want it to rot. can we get some word on it, please?
Keywords: approval, review
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.
Adding shaver, the original xpidl auther.
[SPAM] Marking milestone 'future' as part of nsbeta3 triage.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
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
mass reassign of xpidl bugs to dbradley@netscape.com
Assignee: jband → dbradley
shaver, are you interested?
Assignee: dbradley → shaver
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 → ---
Component: xpidl → XPCOM
QA Contact: mike+mozilla → xpcom
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.

Attachment

General

Creator:
Created:
Updated:
Size: