aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * ext/win32ole/win32ole.c (EVENTSINK_Invoke): avoid cfp consistencysuke2008-07-182-16/+50
| | | | | | | error when exception raised in event callback. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (socklist): table for registering socket optionsusa2008-07-182-97/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (currently only O_NONBLOCK). * win32/win32.c (StartSockets, exit_handler): alloc/free socklist. * win32/win32.c (is_socket): use socklist. * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair): register new socket to socklist. * win32/win32.c (rb_w32_close): remove closing socket from socklist. * win32/win32.c (fcntl): register socket options. * win32/win32.c (overlapped_socket_io): send to/recv from socket with overlapped operation if the socket is not nonblocking mode. [experimental] * win32/win32.c (rb_w32_send, rb_w32_sendto, rb_w32_recv, rb_w32_recvfrom): use overlapped_socket_io(). * win32/win32.c (open_ifs_socket): set overlapped mode. this is the default mode of winsock's socket(), so lacking it is an old bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* svn:eol-style LFnobu2008-07-180-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-18svn2008-07-181-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc r101.drbrain2008-07-1845-4304/+6859
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_c_parser.rb (teardown): close tempfile.mame2008-07-172-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (test_getpriority, test_setpriority): usemame2008-07-172-3/+8
| | | | | | | PRIO_PROCESS instead of PRIO_USER. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_unpack): fix v and V with big endian.mame2008-07-172-2/+7
| | | | | | | [1].pack("V").unpack("V") was [4294967296]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): fix i! with big endian. [1].pack("i!") wasmame2008-07-172-2/+7
| | | | | | | "\0\0\0\0". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (ruby_connect): select() for connect() hasusa2008-07-172-1/+5
| | | | | | | | mean only when the socket is non-blocking. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Simplify expression for RDoc.drbrain2008-07-172-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check.usa2008-07-172-10/+24
| | | | | | | | fixed [ruby-dev:33683] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/enc: moved tests for particular encodings.nobu2008-07-1612-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_start_func_2): wake up joining threads.nobu2008-07-164-58/+73
| | | | | | | | | | | * thread.c (sleep_forever, sleep_timeval): return when interrupted. [ruby-dev:35542] * thread.c (timer_thread_function): restore main thread status. [ruby-core:17270] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_signal.rb (test_trap): string commands are allowed.nobu2008-07-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-17svn2008-07-161-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (appendline): remove invalid access.mame2008-07-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (signal_exec, trap_handler): trap accepts a string asnobu2008-07-162-11/+14
| | | | | | | command. [ruby-dev:35533] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-16svn2008-07-151-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): newmame2008-07-1515-873/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | method. * test/ruby/test_argf.rb: use assert_in_out_err instead of EnvUtil.rubyexec. * test/ruby/test_module.rb: ditto. * test/ruby/test_require.rb: ditto. * test/ruby/test_objectspace.rb: ditto. * test/ruby/test_object.rb: ditto. * test/ruby/test_string.rb: ditto. * test/ruby/test_method.rb: ditto. * test/ruby/test_variable.rb: ditto. * test/ruby/test_io.rb: ditto. * test/ruby/test_rubyoptions.rb: ditto. * test/ruby/test_exception.rb: ditto. * test/ruby/test_class.rb: ditto. * test/ruby/test_thread.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (ruby_version): follow changes in configure.in.usa2008-07-152-7/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to benobu2008-07-155-9/+15
| | | | | | | | | checked. * ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Doknu2008-07-154-5/+9
| | | | | | | | | not test ruby/ruby.h, which makes OS X's gcc pick the wrong header file from Ruby.framework. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (ruby_connect, s_accept): came back blockingusa2008-07-151-8/+27
| | | | | | | | | region because other thread/process maybe read/write the socket between select() and connect()/accept(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (--with-ruby-version): Add a new option to specifyknu2008-07-153-5/+27
| | | | | | | | | | | the ruby version string for version specific directories. [ruby-dev:35490] * mkconfig.rb: Definition of ruby_version is now determined by the configure script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: type.usa2008-07-151-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (ruby_connect, s_accept): no need to wrap byusa2008-07-152-30/+28
| | | | | | | | | | | | | blocking region if checked before readable/writable by select. * ext/socket/socket.c (bsock_send, s_recvfrom, udp_send, unix_send_io, unix_recv_io): should check readable/writable before blocking calling blocking functions. see [ruby-dev:35446] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-15svn2008-07-151-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.c (ubf_handle): cancel blocking IO if it can (onlyusa2008-07-153-0/+19
| | | | | | | | | | Vista). see [ruby-dev:35446] * win32/win32.c (errmap): add ERROR_OPERATION_ABORTED as EINTR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb (teardown): fix typo.suke2008-07-142-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_loop): constified.nobu2008-07-144-57/+27
| | | | | | | | | | | | * transcode.c (str_transcode): rb_str_set_len() sets a delimiter. * transcode_data.h (rb_transcoder): constified preprocessor and postprocessor input. * enc/trans/japanese.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_time.rb (TestTime#test_time_interval): add timeoutkazu2008-07-142-1/+11
| | | | | | | to avoid stopping tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (get_replacement_character): temporary function,naruse2008-07-142-5/+91
| | | | | | | | | | | | get characters for replacement mode. * transcode.c (transcode_loop): add undef key and replace value. * transcode.c (str_transcode): ditto. * transcode.c (Init_transcode): define sym_undef and sym_replace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_variable.rb (TestVariable#test_global_variable_0): add test ↵kazu2008-07-142-0/+14
| | | | | | of $0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: initialize winsock on win32 to avoid errorusa2008-07-142-0/+10
| | | | | | | | dialog of OS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-14svn2008-07-131-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#environment): requires shellwords.nobu2008-07-132-0/+6
| | | | | | | [ruby-dev:35466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (EVENTSINK_Invoke): using hashsuke2008-07-133-6/+167
| | | | | | | | | to set value to the reference argument of event. * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (raise_from_wait, pty_syswait, get_device_once):nobu2008-07-122-3/+9
| | | | | | | constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-13svn2008-07-121-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.usa2008-07-124-2/+19
| | | | | | | | * {bcc32,win32}/Makefile.sub: (SIZEOF_SIZE_T, SIZEOF_PTRDIFF_T): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (LIBRUBY_DLDFLAGS): import library which createdusa2008-07-122-1/+8
| | | | | | | | | | with DLL is broken. save import library which created by lib.exe and install it. fixed the problem mentioned at the postscript of [ruby-dev:35448] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c: use PRIuSIZE.akr2008-07-122-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): fixed typo.nobu2008-07-122-6/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so thatnobu2008-07-125-5/+32
| | | | | | | | | | | extconf.rb do not need to check if headers exist under separated directory. [ruby-dev:35437] * include/{ruby,rubyio,rubysig}.h, include/ruby/intern.h: use "ruby/..." instead of <ruby/...>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (sizeof ptrdiff_t): check for size of ptrdiff_t.nobu2008-07-127-29/+65
| | | | | | | | | | | | | * include/ruby/ruby.h (PRI?PTRDIFF, PRI?SIZE): printf conversion specifiers for ptrdiff_t and size_t/ssize_t. * insns.def (leave), marshal.c (long_toobig), transcode.c (str_transcode), vm_dump.c (control_frame_dump, stack_dump_each), (debug_print_register, debug_print_pre): t and z length modifiers are C99. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requiresnobu2008-07-122-0/+6
| | | | | | | webrick/cookie. [ ruby-Bugs-21139 ] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb: add testsuke2008-07-122-0/+32
| | | | | | | | | | for WIN32OLE_EVENT#on_event_with_outargs * test/win32ole/test_win32ole_event.rb(teardown): calling WIN32OLE_EVENT.message_loop git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-07-12svn2008-07-111-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_select): shoudn't pass non-socket handle tousa2008-07-112-0/+9
| | | | | | | | original select(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e