diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-31 16:07:31 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-01-28 15:25:33 +0000 |
commit | 853bcf65c767594b37d9c7639df5a2894c716d6a (patch) | |
tree | 05b102b9c1d4f159258c06b71c6ddbebc7997758 /ext | |
parent | c1666158373398c6f58e637adfe31ddad8c8ce00 (diff) |
[ruby/win32ole] Rename `WIN32OLE::VARIANT` as `WIN32OLE::VariantType`
Prevent name clash with `WIN32OLE::Variant`, of generated document
files on case-insensitive filesystems, such as Windows.
https://github.com/ruby/win32ole/commit/049e5f0a6e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/win32ole/win32ole_variant_m.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/win32ole/win32ole_variant_m.c b/ext/win32ole/win32ole_variant_m.c index c285a00177..d879506be3 100644 --- a/ext/win32ole/win32ole_variant_m.c +++ b/ext/win32ole/win32ole_variant_m.c @@ -5,16 +5,18 @@ VALUE mWIN32OLE_VARIANT; void Init_win32ole_variant_m(void) { /* - * Document-module: WIN32OLE::VARIANT + * Document-module: WIN32OLE::VariantType * - * The WIN32OLE::VARIANT module includes constants of VARIANT type constants. - * The constants is used when creating WIN32OLE_VARIANT object. + * The +WIN32OLE::VariantType+ module includes constants of VARIANT type constants. + * The constants is used when creating WIN32OLE::Variant object. * - * obj = WIN32OLE_VARIANT.new("2e3", WIN32OLE::VARIANT::VT_R4) + * obj = WIN32OLE::Variant.new("2e3", WIN32OLE::VARIANT::VT_R4) * obj.value # => 2000.0 * */ - mWIN32OLE_VARIANT = rb_define_module_under(cWIN32OLE, "VARIANT"); + mWIN32OLE_VARIANT = rb_define_module_under(cWIN32OLE, "VariantType"); + /* Alias of WIN32OLE::VariantType, for the backward compatibility */ + rb_define_const(cWIN32OLE, "VARIANT", mWIN32OLE_VARIANT); /* * represents VT_EMPTY type constant. |