ruby-changes:66245
From: Sutou <ko1@a...>
Date: Tue, 18 May 2021 12:48:57 +0900 (JST)
Subject: [ruby-changes:66245] 791e8eec66 (master): [ruby/fiddle] win32types: sort
https://git.ruby-lang.org/ruby.git/commit/?id=791e8eec66 From 791e8eec66d3aebcee36c1369b0bf52bc3815e94 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Tue, 29 Dec 2020 05:19:25 +0900 Subject: [ruby/fiddle] win32types: sort https://github.com/ruby/fiddle/commit/35dec6c5a5 --- ext/fiddle/lib/fiddle/types.rb | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ext/fiddle/lib/fiddle/types.rb b/ext/fiddle/lib/fiddle/types.rb index 3ea7936..7baf31e 100644 --- a/ext/fiddle/lib/fiddle/types.rb +++ b/ext/fiddle/lib/fiddle/types.rb @@ -29,27 +29,27 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/ext/fiddle/lib/fiddle/types.rb#L29 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 "LPCSTR", "const char *" - typealias "LPSTR", "char *" - typealias "HINSTANCE", "HANDLE" typealias "HDC", "HANDLE" + typealias "HINSTANCE", "HANDLE" typealias "HWND", "HANDLE" + typealias "LPCSTR", "const char *" + typealias "LPSTR", "char *" + 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/