зеркало из https://github.com/github/ruby.git
[ruby/fiddle] win32types: sort
https://github.com/ruby/fiddle/commit/35dec6c5a5
This commit is contained in:
Родитель
8758b07b1e
Коммит
791e8eec66
|
@ -29,27 +29,27 @@ module Fiddle
|
|||
def included(m) # :nodoc:
|
||||
# https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
|
||||
m.module_eval{
|
||||
typealias "ATOM", "WORD"
|
||||
typealias "BOOL", "int"
|
||||
typealias "BYTE", "unsigned char"
|
||||
typealias "DWORD", "unsigned long"
|
||||
typealias "PDWORD", "DWORD *"
|
||||
typealias "DWORD32", "uint32_t"
|
||||
typealias "DWORD64", "uint64_t"
|
||||
typealias "WORD", "unsigned short"
|
||||
typealias "PWORD", "WORD *"
|
||||
typealias "BOOL", "int"
|
||||
typealias "ATOM", "WORD"
|
||||
typealias "BYTE", "unsigned char"
|
||||
typealias "PBYTE", "BYTE *"
|
||||
typealias "UINT", "unsigned int"
|
||||
typealias "ULONG", "unsigned long"
|
||||
typealias "UCHAR", "unsigned char"
|
||||
typealias "HANDLE", "PVOID"
|
||||
typealias "PHANDLE", "HANDLE *"
|
||||
typealias "PVOID", "void *"
|
||||
typealias "HDC", "HANDLE"
|
||||
typealias "HINSTANCE", "HANDLE"
|
||||
typealias "HWND", "HANDLE"
|
||||
typealias "LPCSTR", "const char *"
|
||||
typealias "LPSTR", "char *"
|
||||
typealias "HINSTANCE", "HANDLE"
|
||||
typealias "HDC", "HANDLE"
|
||||
typealias "HWND", "HANDLE"
|
||||
typealias "PBYTE", "BYTE *"
|
||||
typealias "PDWORD", "DWORD *"
|
||||
typealias "PHANDLE", "HANDLE *"
|
||||
typealias "PVOID", "void *"
|
||||
typealias "PWORD", "WORD *"
|
||||
typealias "UCHAR", "unsigned char"
|
||||
typealias "UINT", "unsigned int"
|
||||
typealias "ULONG", "unsigned long"
|
||||
typealias "WORD", "unsigned short"
|
||||
}
|
||||
end
|
||||
module_function :included
|
||||
|
|
Загрузка…
Ссылка в новой задаче