summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/win32ole/win32ole.c (ole_invoke): WIN32OLE#[] and WIN32OLE#[]=suke2008-08-271-1/+1
| | | | | | | | | accepts number argument. * test/win32ole/test_win32ole.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpMult): fix double free.mame2008-08-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change.akr2008-08-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (rb_io_t): remove path field and add pathv field.akr2008-08-231-6/+8
| | | | | | | | | | | | | | | | (MakeOpenFile): initialize pathv as Qnil. * gc.c: mark pathv field in T_FILE. * io.c: follow the rb_io_t field change. * file.c: ditto. * ext/socket/socket.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): store theakr2008-08-191-0/+1
| | | | | | | result of d2i_X509_NAME into DATA_PTR(self). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb, lib/set.rb (TC_Set#test_each),knu2008-08-131-1/+1
| | | | | | | | | | | | | test/readline/test_readline_history.rb (Readline#test_each__enumerator), test/ruby/test_array.rb (TestArray#test_collect), test/ruby/test_enumerator.rb (TestEnumerator#test_initialize): Enumerable::Enumerator is now called Enumerator. * lib/rinda/tuplespace.rb (Rinda::TupleBag#initialize): Use enum_for instead of hardcoding Enumerable::Enumerator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignorematz2008-08-121-1/+1
| | | | | | <=> comparison. [ruby-dev:35732] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syslog/syslog.c (mSyslog_open): Use of Check_SafeStr() isknu2008-08-121-6/+2
| | | | | | | | | | deprecated. (mSyslogConstants_LOG_MASK, mSyslogConstants_LOG_UPTO): Use NUM2INT() instead of FIX2INT() when the type of an given object is not determined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fixed shadowing variable.nobu2008-08-121-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/getaddrinfo.c (getaddrinfo): constified.nobu2008-08-121-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): add taint check.matz2008-08-113-8/+18
| | | | | | | | | | | | * ext/dl/dl.c (rb_dl_malloc): add rb_secure(2). * ext/dl/dl.c (rb_dl_realloc): ditto. * ext/dl/dl.c (rb_dl_free): ditto. * ext/dl/dl.c (rb_dl_ptr2value): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/README.ja: added API document forkouji2008-08-113-0/+67
| | | | | | | | | | | | | | | | Readline.vi_editing_mode? and Readline.emacs_editing_mode?. * ext/readline/extconf.rb: checked rl_editing_mode variable in Readline library. * ext/readline/readline.c (readline_s_emacs_editing_mode_p): added Readline.emacs_editing_mode? method. (readline_s_vi_editing_mode_p): added Readline.vi_editing_mode? method. (Init_readline): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),nobu2008-08-093-1/+5
| | | | | | | | | | | | ext/digest/md5/md5.c, ext/openssl/ossl.c (main), ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int. * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is no longer used so long time. based on a patch from Peter Bowen at [ruby-core:18208] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalidnobu2008-08-091-2/+2
| | | | | | | | preprocessor directives. a patch from Peter Bowen at [ruby-core:18211]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/.document: added readline/readline.c.kouji2008-08-074-66/+412
| | | | | | | | | | | * ext/readline/readline.c: changed Copyright. added RDoc. * ext/readline/README.ja: fixed typo. * ext/readline/README: contents was moved RDoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/README.ja: updated API document for Readline module.kouji2008-08-071-35/+376
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/getaddrinfo.c (gai_strerror): ignore only on Haiku.usa2008-08-071-2/+2
| | | | | | | | a patch from <znz at mbf.nifty.com>, [ruby-dev:35796]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_intern.h: Add support to Haiku. see [ruby-core:18110]naruse2008-08-065-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | * include/ruby/defines.h: ditto. * configure.in: ditto. * thread_pthread.c: ditto. * io.c: ditto. * lib/mkmf.rb: ditto. * ext/socket/getaddrinfo.c: ditto. * ext/socket/extconf.rb: ditto. * ext/socket/socket.c: ditto. * ext/socket/addrinfo.h: ditto. * ext/socket/getnameinfo.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (hash2named_arg): refactoring.suke2008-08-031-5/+26
| | | | | | | | | | | | * ext/win32ole/win32ole.c (ole_invoke, fole_respond_to, ev_on_event, fev_off_event): accepts Symbol argument. * test/win32ole/test_win32ole.rb: ditto. * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: checked to have clear_history inkouji2008-08-012-6/+52
| | | | | | | | | | | | | | | | | | | | | | | readline library. * ext/readline/readline.c (hist_get, hist_each, Init_readline): The offset specified for the argument of history_get() might be different in GNU Readline and libedit. If use libedit, it was corrected that the computational method of the offset specified for the argument of history_get() when the Readline module was initialized was decided. (hist_get, hist_set): If use libedit, accesses first an input content in history when specifies the negative offset for the argument of history_get() or replace_history_entry(). Then checks the offset is negative in ruby. (rb_remove_history): When compiling, it corrects it to warning when libedit is used. (hist_clear, Init_readline): added Readline::HISTORY.clear method. [ruby-dev:35551] * test/readline/test_readline_history.rb: added unit test for Readline::HISTORY. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/syck.c (syck_free_parser): fix memory leak bymame2008-07-311-0/+17
| | | | | | | YAML::Syck.compile. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpMult): prevent memory leak.mame2008-07-311-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/syck.h (ASSERT): fix typo at r18176.nobu2008-07-311-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has nonobu2008-07-311-1/+3
| | | | | | | effect unless debug mode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms whichnobu2008-07-313-3/+3
| | | | | | | | | | | | int size differs from pointer size. * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): ditto * ext/syck/rubyext.c (rb_syck_err_handler), (syck_default_error_handler): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (rb_syck_compile): remove meaningless branchmame2008-07-301-2/+3
| | | | | | | | that misleads into thinking that the variable sav may be uninitialized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautologymame2008-07-301-3/+3
| | | | | | | condition. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): fix typo.mame2008-07-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add sample script using WIN32OLE_EVENT#handler=suke2008-07-261-0/+40
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (Init_win32ole): addsuke2008-07-261-11/+105
| | | | | | | | | WIN32OLE_EVENT#handler=, WIN32OLE_EVENT#handler * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (add_event_call_back): remove unused suke2008-07-251-1/+0
| | | | | | | variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_invoke, add_event_callback,suke2008-07-251-9/+4
| | | | | | | rescue_callback): refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (Init_win32ole): addsuke2008-07-251-1/+48
| | | | | | | | | | | WIN32OLE_EVENT#off_event. * test/win32ole/test_win32ole_event.rb: ditto. * test/win32ole/test_win32ole_event.rb: some refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename):nobu2008-07-251-0/+1
| | | | | | | constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf.c (rb_nkf_convert): output of mime encode is US-ASCII.naruse2008-07-241-1/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: got rid of improper casts.nobu2008-07-231-24/+40
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/{stubs,tcltklib}.c, ext/tk/tkutil/tkutil.c: fix warningsnobu2008-07-234-44/+49
| | | | | | | about constness and signedness. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/openssl_missing.h (d2i_of_void): define for oldernobu2008-07-231-0/+4
| | | | | | | versions. [ruby-dev:35637] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: use try_static_assert.nobu2008-07-231-2/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck: suppress warnings more.nobu2008-07-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck: suppress warnings more.nobu2008-07-228-24/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename):nobu2008-07-221-6/+6
| | | | | | | constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck: suppress warnings.nobu2008-07-227-57/+72
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl: suppress warnings.nobu2008-07-2230-195/+186
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c, ext/syck/yaml2byte.c, ext/syck/emitter.c,mame2008-07-226-17/+21
| | | | | | | | ext/syck/syck.c, ext/syck/handler.c, ext/syck/syck.h: suppress GCC warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): BigDecimal#<=> shouldmame2008-07-222-2/+10
| | | | | | | | | | return nil if an argument can't be coerced into BigDecimal. * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c (VpIsNegDoubleZero, VpItoV): comment out unused functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (connect_blocking, socks_connect_blocking,usa2008-07-221-3/+3
| | | | | | | | ruby_connect): cast. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (EVENTSINK_Invoke): use rb_protectsuke2008-07-201-5/+7
| | | | | | | | instead of rb_rescue2. [ruby-dev:35595] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (EVENTSINK_Invoke): little refactoring.suke2008-07-191-9/+15
| | | | | | | | | * ext/win32ole/win32ole.c (EVENTSINK_GetIDsOfNames): return ITypeInfo::GetIDsOfNames(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (EVENTSINK_Invoke): little refactoring.suke2008-07-191-6/+70
| | | | | | | * ext/win32ole/win32ole.c: add document of inspect methods. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e