summaryrefslogtreecommitdiffstats
path: root/ext/win32ole
Commit message (Collapse)AuthorAgeFilesLines
* merge revision(s) 17827,17846:17848:shyouhei2008-07-075-94/+249
| | | | | | | | | | | | | | | * gc.c: add rb_during_gc(). based on a patch from arton <artonx AT yahoo.co.jp> at [ruby-dev:35313]. * intern.h: ditto. * ext/win32ole/win32ole.c: avoid creating Ruby object during GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313] * ext/win32ole/tests: add test_win32ole_event.rb, remove testOLEEVENT.rb * ext/win32ole/tests/testWIN32OLE.rb(test_convert_bignum): fix test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17642:shyouhei2008-07-021-1/+1
| | | | | | | | * ext/win32ole/win32ole.c (date2time_str): fix the overflow in some situation. [ruby-bugs-20793] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17561:shyouhei2008-06-291-4/+20
| | | | | | | | * ext/win32ole/win32ole.c(ole_invoke): fix memory leak. [ruby-bugs-20792] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 13951:shyouhei2008-06-071-2/+2
| | | | | | | * ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@16947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_type_progid, reg_enum_key, shyouhei2007-09-071-8/+13
| | | | | | | | reg_get_val, ole_wc2mb): fix the bug. Thanks, arton. [ruby-dev:31576] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_rename): deleted code to get rid of a bug ofshyouhei2007-08-221-6/+11
| | | | | | | | | | | | | | | | | | | | | old Cygwin. * file.c (rb_file_truncate): added prototype of GetLastError() on cygwin. [ruby-dev:31239] * intern.h (is_ruby_native_thread): prototype. * missing/strftime.c (strftime): fix printf format and actual arguments. * ext/Win32API/Win32API.c (Win32API_initialize): ditto. * ext/tk/tcltklib.c (ip_finalize): ditto. * ext/dl/ptr.c (rb_dlptr_inspect): ditto. [ruby-dev:31268] * ext/dl/sym.c (rb_dlsym_inspect): ditto. * ext/socket/getnameinfo.c: include stdio.h always. * ext/win32ole/win32ole.c (ole_hresult2msg, folevariable_name, folevariable_ole_type, folevariable_ole_type_detail, folevariable_value, folemethod_visible): missing return value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_variant2val): fix compile errorsuke2007-02-101-1/+2
| | | | | | | on VC++. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_variant2val): fix the bug whensuke2007-02-091-1/+5
| | | | | | | | SAFEARRAY pointer is NULL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove including header filesuke2007-01-131-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix memory leak of win32ole.suke2007-01-131-1/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Test class name should not be duplicated.suke2006-07-072-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* support some kind of method of word. [ruby-Bugs#3237]suke2006-06-194-15/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* support PROPERTYPUTREF. [ruby-talk:183042]suke2006-06-163-2/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* The return value of WIN32OLE#ole_methods and WIN32OLE#ole_put_methodssuke2006-06-153-3/+40
| | | | | | | should include PROPERTYPUTREF methods. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* WIN32OLE#[] should accept multi argments.suke2006-03-292-5/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add .documentsuke2006-01-271-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_base_s_digest): add volatile tomatz2005-12-121-2/+2
| | | | | | | | | | | protect temporary context object. [ruby-dev:27979] * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should be called before actual variable initialization. [ruby-dev:27986] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add testNIL2VTEMPTYsuke2005-10-092-0/+29
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* create .document file for rdoc.suke2005-10-091-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.suke2005-10-041-221/+779
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid core dump with WIN32OLE_EVENT. [ruby-dev:27133]suke2005-09-191-3/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix bug in ext/win32ole/sample/ienavi.rbsuke2005-09-162-3/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* should set only one handler in WIN32OLE_EVENT#on_eventsuke2005-08-063-18/+82
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* convert dispid in Ruby and C by INT2NUM and NUM2INT.suke2005-07-093-3/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add WIN32OLE.codepage, WIN32OLE.codepage= methods.suke2005-04-182-6/+104
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c(ole_invoke): retry after converting Qnilsuke2005-04-102-4/+42
| | | | | | | | | | to VT_EMPTY. * ext/win32ole/win32ole/tests/testWIN32OLE.rb: correct error message string "Unknown" => "unknown". git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * exception error messages updated. [ruby-core:04497]matz2005-02-281-53/+53
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, ext/**/MANIFEST: removed.eban2004-11-011-24/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_locktmp): lock string temporarily.matz2004-10-301-2/+2
| | | | | | | | | | | | | | * string.c (str_independent): add tmplock check. * io.c (io_write): lock output string temporarily. [ruby-dev:24649] * io.c (io_write): use rb_str_locktmp(). * io.c (read_all): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* some typo fixed.suke2004-10-302-46/+46
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole.c(ole_invoke): retrieve the result value whensuke2004-10-191-3/+5
| | | | | | | retrying the IDispatch::invoke. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (fole_func_methods): correct argument mismatch.suke2004-10-172-14/+22
| | | | | | | | | | * ext/win32ole/win32ole.c (fole_get_methods): ditto. * ext/win32ole/win32ole.c (fole_put_methods): ditto. * ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE#ole_func_methods WIN32OLE#ole_get_methods, WIN32OLE#ole_put_methods git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_hresult2msg): remove trailingocean2004-06-221-3/+6
| | | | | | | CR and LF. (doesn't depend on CR+LF) [ruby-dev:23694] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (OLE_FREE): should not call CoFreeUnuse-suke2004-06-221-9/+8
| | | | | | | | | | | | dLibraries(). * ext/win32ole/win32ole.c (ole_event_free): ditto. * ext/win32ole/win32ole.c (ole_hresult2msg): truncate error message before CR. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (top_include): include in the wrapped load is done formatz2004-04-051-40/+40
| | | | | | | | | | | | | | | | | | the wrapper, not for a singleton class for wrapped main. [ruby-dev:23305] * bignum.c (rb_big_eq): use temporary double variable to save the result (internal float register may be bigger than 64 bits, for example, 80 bits on x86). [ruby-dev:23311] * eval.c (block_pass): should generate unique identifier of the pushing block. [ruby-talk:96363] * ext/socket/socket.c (make_hostent): fix memory leak, based on the patch from HORIKAWA Hisashi <vzw00011@nifty.ne.jp>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: need to include <olectl.h> on Cygwin.eban2004-02-181-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/win32ole/win32ole.c: add IDispatch interface in val2variantsuke2004-02-151-241/+385
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (set_argv): fix condition.usa2004-01-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: Makefiles should depend on also rbconfig.rb.nobu2004-01-262-14/+20
| | | | | | | | | | (ruby-bugs:PR#1256) * ext/win32ole/win32ole.c (set_argv): set real arguments to WIN32OLE::ARGV. [ruby-list:39073] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-161-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/extconf.rb: check "windows.h", not "windows".eban2003-10-121-1/+1
| | | | | | | [ruby-talk:84051] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/extconf.rb: add windows.h checking.eban2003-09-291-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c, ext/openssl/ossl_pkey_dsa.c,nobu2003-09-241-1/+1
| | | | | | | | ext/openssl/ossl_pkey_rsa.c, ext/bigdecimal/bigdecimal.h: must not use C++ or C99 style comment yet. (ruby-bugs:PR#1184) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (OLE_FREE): should not callsuke2003-08-141-5/+7
| | | | | | | | | | | | ole_message_loop. * ext/win32ole/win32ole.c (ole_event_free): ditto. * ext/win32ole/win32ole.c (ole_initialize): stop calling OleUninitialize at exit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_disable_super, rb_enable_super): deprecate.matz2003-07-161-4/+0
| | | | | | | | | * eval.c (thgroup_s_alloc): re-implement group struct. * eval.c (thgroup_add): add check for enclose and frozen status. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_close): missing prototype.aamine2003-06-231-0/+2
| | | | | | | | | * ext/socket/socket.c (bsock_do_not_rev_lookup_set): ditto. * ext/win32ole/win32ole.c (foletype_guid, foletype_progid): ditto. * error.c (syserr_initialize): length argument of sprintf() is an int. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (rb_dl_callback): use rb_block_proc() instead ofusa2003-06-161-1/+1
| | | | | | | | | rb_block_new(). * ext/win32ole/win32ole.c (ev_on_event): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (define_final): eliminate rb_f_lambda() call.matz2003-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * class.c (rb_scan_args): ditto. * signal.c (sig_trap): ditto. * hash.c (rb_hash_initialize): ditto. * variable.c (rb_f_trace_var): ditto. * ext/dl/dl.c (rb_dl_callback): ditto. * ext/win32ole/win32ole.c (ev_on_event): ditto. * eval.c (ruby_cleanup): $SAFE is turned off in the finalization. Each END proc should preserve its own $SAFE level. [ruby-core:01119] * marshal.c (marshal_load): remove unused variable "hash". [ruby-core:01120] * hash.c (env_str_new): freeze strings from ENV. [ruby-talk:72860] * array.c (rb_ary_first): optional argument to retrieve first n elements. * array.c (rb_ary_last): optional argument to retrieve last n elements. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add WIN32OLE_TYPE#to_s method.suke2003-05-176-3/+38
| | | | | | | | | add WIN32OLE_VARIABLE#to_s method. add WIN32OLE_METHOD#to_s method. add WIN32OLE_PARAM#to_s method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* secure check when safe level 4.suke2003-05-031-2/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e