Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

qchikara
Copy link
Contributor

Add extern (Windows) to aliases and struct fields.

Add extern (Windows) to aliases and struct fields.
@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15838 Many Win32 API callback functions miss extern(Windows)

@@ -3869,7 +3869,7 @@ static if (_WIN32_WINNT >= 0x501) {
}
alias LVINSERTGROUPSORTED* PLVINSERTGROUPSORTED;

alias int function(INT, INT, VOID*) PFNLVGROUPCOMPARE;
extern (Windows) alias int function(INT, INT, VOID*) PFNLVGROUPCOMPARE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be alias PFNLVGROUPCOMPARE = extern(Windows) int function(INT, INT, VOID*); ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK,
and extern(Windows){ aliases ... }, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, old style aliases should be fixed ...?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that'd be great as a separate commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the change of styles should be made at all.
So, these core.sys.windows.* modules have thousands of aliases, mostly in old styles.
I misses such a skill to do efficiently :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay let's ignore them for now.

@DmitryOlshansky
Copy link
Member

LGTM

@DmitryOlshansky
Copy link
Member

Auto-merge toggled on

@DmitryOlshansky DmitryOlshansky merged commit ce29bfc into dlang:master Apr 10, 2016
@qchikara qchikara deleted the pr_win32_callbacks_linkeage branch May 10, 2016 05:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants