You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per some meeting or other, we discussed a plan to reform how how C functions work. I have been laying some of the groundwork for this but I think there is no meta-bug discussing it and bringing together the various things that need to be done.
Per some meeting or other, we discussed a plan to reform how how C functions work. I have been laying some of the groundwork for this but I think there is no meta-bug discussing it and bringing together the various things that need to be done.
The plan is:
extern "abi" fn(S) -> Twhereabiis one of the Rust-supported ABIs, and defaults toC. (Addextern "abi" fntype to represent C pointers #3321)extern fntype (Remove bare function types, replace with inference #3320) andextern fn(crust fn) declarationsextern fntype; in trans, we generate a wrapper at that timeextern fntype, we will generate inline the C-abi style invocation, perhaps generating wrappers