-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Should extern "C" include "C" #451
Comments
Personally I prefer |
On 32-bit Windows both cdecl and stdcall are really popular. cdecl is the same as "C", and what most libraries use by default, while stdcall is the same as "system" and is used for almost the entirety of Windows API and also some libraries. As such I feel that it is always a good idea to specify the ABI and I'd prefer to have it explicit as the default. |
I think we drop the annotation by default for extern blocks. I have no preference, but we should be consistent at least. |
Reopening because we need to decide on a default value before 1.0. |
No strong opinion here. Leaning towards explicit default. |
Closing in favour of rust-lang/style-team#52 |
I.e., should we format
extern "C" fn
as that orextern fn
?We should have an option for both versions, but I'm not sure which should be the default.
The text was updated successfully, but these errors were encountered: