Skip to content

Commit

Permalink
Remove usages of 'in' on Windows C bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Nov 30, 2022
1 parent b58d652 commit 1d50f24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion std/internal/windows/advapi32.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ pragma(lib, "advapi32.lib");
HMODULE hAdvapi32 = null;
extern (Windows)
{
LONG function(in HKEY hkey, in LPCWSTR lpSubKey, in REGSAM samDesired, in DWORD reserved) pRegDeleteKeyExW;
LONG function(
scope const HKEY hkey, scope const LPCWSTR lpSubKey,
scope const REGSAM samDesired, scope const DWORD reserved) pRegDeleteKeyExW;
}

void loadAdvapi32()
Expand Down
4 changes: 2 additions & 2 deletions std/stdio.d
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ version (Windows)
// encoded in CP_ACP on Windows instead of UTF-8.
/+ Waiting for druntime pull 299
+/
extern (C) nothrow @nogc FILE* _wfopen(in wchar* filename, in wchar* mode);
extern (C) nothrow @nogc FILE* _wfreopen(in wchar* filename, in wchar* mode, FILE* fp);
extern (C) nothrow @nogc FILE* _wfopen(scope const wchar* filename, scope const wchar* mode);
extern (C) nothrow @nogc FILE* _wfreopen(scope const wchar* filename, scope const wchar* mode, FILE* fp);

import core.sys.windows.basetsd : HANDLE;
}
Expand Down

0 comments on commit 1d50f24

Please sign in to comment.