summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/mkmf.rb (try_func): got rid of c-mode confusion.nobu2009-01-232-6/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-01-23svn2009-01-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap_handler): also accepts symbols. [ruby-dev:37823]nobu2009-01-232-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Recover default_default_internal.naruse2009-01-221-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): removes installed files undernobu2009-01-222-6/+13
| | | | | | | extout at distclean. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI.parse): generate only key on params hashxibbar2009-01-223-1/+11
| | | | | | | if request have only key uri parameters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb ($distcleanfiles): fixed typo.nobu2009-01-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb ($distcleanfiles): removes constdefs.[ch].nobu2009-01-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/installer.rb (Gem::Installer#initialize): fixednobu2009-01-226-12/+44
| | | | | | | | | | | | | | | | | | | | | | | | typos. * test/rubygems/test_gem.rb (test_self_dir): removed false assertions. * test/rubygems/test_gem.rb (test_self_set_paths): checks if paths are included. * test/rubygems/test_gem_commands_install_command.rb (test_execute_remote): checks diagnostic message too. * test/rubygems/test_gem_installer.rb (load): uses Gem.ruby. * test/rubygems/gemutilities.rb (Gem.ruby): initializes from the environment variable to run without installation. * test/rubygems/gemutilities.rb (RubyGemTestCase#util_build_gem): creates cache directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * revert previous revision. it's already out-of-date.usa2009-01-224-14/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h, win32/win32.c (rb_w32_is_valid_fd): new functionusa2009-01-224-2/+21
| | | | | | | | | | to validate fd. * io.c (rb_io_initialize): check fd with above function. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb: mswin specs.usa2009-01-221-22/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to runnobu2009-01-222-1/+6
| | | | | | | tests without install. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (define_final): cannot define finalizer for immediatenobu2009-01-222-2/+16
| | | | | | | | | values. [ruby-core:21500] * gc.c (define_final): freezes or hides internal values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_time_timeval): made a real prototype. a patch fromnobu2009-01-222-1/+6
| | | | | | | Marcus Rueckert <darix AT opensu.se> at [ruby-core:21492]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-01-22svn2009-01-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_double_capa): a new function to expand array morematz2009-01-212-13/+30
| | | | | | | | | | | | aggressively. [ruby-core:21460] * array.c (rb_ary_store): use ary_double_capa(). * array.c (rb_ary_unshift_m): ditto. * array.c (rb_ary_splice): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_ungetbyte, rb_io_ungetc): allows nil to reset EOFnobu2009-01-213-2/+11
| | | | | | | | | | flag with ungetting nothing. * ruby.c (load_file_internal): rests EOF flag to make possible to load from stdin after reading data. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add test for String#encode.naruse2009-01-211-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_ungetbyte, rb_io_ungetc): clears EOF flag.nobu2009-01-212-1/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (hash): suppress a warning.nobu2009-01-211-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (take_items): to_ary() raises ArgumentError if cannot tousa2009-01-214-4/+15
| | | | | | | | convert to Array. [ruby-dev:37797] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (debug_lines): calls rb_intern() once.nobu2009-01-212-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file_internal): no need to cast.nobu2009-01-211-10/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (FMODE_EOF): EOF flag on TTY.nobu2009-01-211-8/+11
| | | | | | | | | | | | | * io.c (io_set_eof): sets EOF flag for TTY. * io.c (io_seek): clears EOF flag. * io.c (io_fillbuf): returns EOF if already met EOF. [ruby-dev:37798] * io.c (io_fillbuf, io_fread, io_getpartial): sets EOF. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (typedef struct rb_io_t):nobu2009-01-213-3/+25
| | | | | | | | | | | * io.c (flush_before_seek): * io.c (io_fillbuf): * io.c (io_fread): * io.c (io_getpartial): * ruby.c (load_file_internal): git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-01-21svn2009-01-201-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.3.1 r4532.ryan2009-01-203-0/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (socket_s_list_ip_address): new method.akr2009-01-206-1/+281
| | | | | | | | | | | | | | | | | (sockaddr_obj): new function. * ext/socket/rubysocket.h: include ifaddrs.h, sys/ioctl.h, sys/sockio.h, net/if.h if available. (addrinfo_new): declared. * ext/socket/raddrinfo.c (addrinfo_new): exported. * ext/socket/extconf.rb: check ifaddrs.h, sys/ioctl.h, sys/sockio.h, net/if.h and getifaddrs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h (pseudo_AF_FTIP): moved from mkconstants.rb.akr2009-01-203-4/+22
| | | | | | | | * ext/socket/mkconstants.rb: prepend header if -H is not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (nkf_buf): use nkf_char.naruse2009-01-202-20/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixednobu2009-01-204-9/+16
| | | | | | | | | with ruby_ to export. * ext/continuation/continuation.c, ext/fiber/fiber.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (miniruby): renames and then removes, to get rid ofnobu2009-01-205-18/+31
| | | | | | | | | | | | | | | | | EPERM on cygwin and mingw. * Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy. * configure.in (DLDFLAGS): do not export all symbols. * cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixex with Init_. * win32/mkexports.rb (Exports::Mingw): includes all symbols except for prefixed with Init_ as well as mswin32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (hash): fixed the tail bytes handling in the alignednobu2009-01-202-4/+15
| | | | | | | access case. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (nkf_buf_push): maybe a bug.usa2009-01-202-1/+9
| | | | | | | | * ext/nkf/nkf-utf8/nkf.c (options): no need to support help option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (take_items), enum.c (enum_zip): tries to convert tonobu2009-01-195-3/+24
| | | | | | | array first. [ruby-core:21442] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: Update nkf to 2.0.9.naruse2009-01-192-264/+334
| | | | | | revert -s meaning as Shift_JIS, etc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (hash): fixed typo. [ruby-dev:37791]nobu2009-01-192-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-01-20svn2009-01-191-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb (SOMAXCONN): defined.akr2009-01-192-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: use erb for generating code.akr2009-01-192-7/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (hash): defaulted to MurmurHash 2.0.nobu2009-01-192-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.nobu2009-01-193-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/defines.h (RUBY_ALIAS_FUNCTION2): added.nobu2009-01-193-8/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (vm_stack_dump_each): used only if debug mode.nobu2009-01-191-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (hash): added MurmurHash 2.0.nobu2009-01-192-54/+97
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_execute_interrupts): needsnobu2009-01-193-2/+6
| | | | | | | rb_signal_buff_size to be declared. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (require_libraries): reset th->parse_in_eval whileko12009-01-192-0/+9
| | | | | | | | loading libraries. fixes [ruby-dev:37780] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c, eval.c (rb_f_block_given_p): move definition ofko12009-01-196-44/+55
| | | | | | | | | | | | "iterator?" and "block_given?" to make static. * vm.c (vm_get_ruby_level_caller_cfp): make it static. * eval_intern.h, vm_insnhelper.c: move decl. of vm_get_ruby_level_caller_cfp() from eval_intern.h to vm_insnhelper.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c: add a prefix "rb_" to exposed functionsko12009-01-1914-77/+92
| | | | | | | | | | | | | | | | | vm_get_ruby_level_next_cfp(), rb_vm_make_env_object(), vm_stack_to_heap(), vm_make_proc(), vm_invoke_proc(), vm_get_sourceline(), vm_cref(), vm_localjump_error(), vm_make_jump_tag_but_local_jump(), vm_jump_tag_but_local_jump(). This changes may affect only core because most of renamed functions require a pointer of not-exposed struct such as rb_thread_t or NODE. In short, they are core functions. * cont.c, eval.c, eval_intern.h, load.c, proc.c, thread.c, vm_core.h, vm_dump.c, vm_eval.c, vm_exec.c, vm_insnhelper.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e