aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * hash.c (hash_foreach_iter): fix for prototype.nobu2009-02-262-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (INSNS, newline.c, miniprelude.c, prelude.c),nobu2009-02-264-38/+15
| | | | | | | | (node_name.inc, known_errors.inc): unified from Makefile.in and win32/Makefile.sub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_fork.rb: no need to test if fork(2) is not implemented.usa2009-02-261-5/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_thread.rb: broken test.usa2009-02-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (valid_filename): use our own implementation of open(),usa2009-02-262-11/+8
| | | | | | | | close() and unlink(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (cdhash_each): resurrects internal literals.nobu2009-02-262-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (rb_w32_wopen): prototype forgotten.usa2009-02-263-10/+12
| | | | | | | | | * io.c (rb_sysopen_internal): shouldn't replace undefined chars in this case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: more MSG_* constants.akr2009-02-252-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-02-26svn2009-02-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_level): extracted from sockopt_level_m.akr2009-02-253-4/+113
| | | | | | | | | | | (sockopt_optname): extracted from sockopt_optname_m. (sockopt_data): apply StringValue. (sockopt_s_linger): new method. (sockopt_linger): new method. (inspect_linger): show onoff value if it is neither 0 nor 1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_unix_rights): raiseakr2009-02-252-11/+26
| | | | | | | | | | NotImplementedError if no fd passing feature. (ancillary_timestamp): raise NotImplementedError if no timestamp feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_s_unix_rights): new method.akr2009-02-253-1/+114
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/unixsocket.c (unix_recv_io): prevent FD leak when 2 fd isakr2009-02-254-17/+37
| | | | | | | | | | | | | sent on LP64 platform. * ext/socket/rubysocket.h (rsock_discard_cmsg_resource): declared. * ext/socket/ancdata.c (rsock_discard_cmsg_resource): renamed from discard_cmsg_resource. export it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (sysopen_func, rb_sysopen_internal, rb_sysopen): open fileusa2009-02-253-17/+96
| | | | | | | | | | | | | | | | | | | by UTF-16'ed filename on Windows. * io.c (rb_file_open_generic, rb_io_s_sysopen, rb_io_reopen, argf_next_argv): follow above change. * io.c (rb_scan_open_args): no longer need to convert filepath here on Windows. * win32/wio32.c (rb_w32_wopen): new function to open file by UTF-16'ed filename. * win32/win32.c (rb_w32_open): call rb_w32_open(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.status): use un.rb as cp instead ofusa2009-02-253-2/+9
| | | | | | | | | | | cmd.exe's copy command. * lib/mkmf.rb (create_makefile): no longer need to convert path separator when copying file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_line): constified.nobu2009-02-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_force_encoding): should clear coderange at changingnobu2009-02-253-3/+13
| | | | | | | encoding. [ruby-core:22437] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getline_1): enables limit even if rs is given.nobu2009-02-253-16/+24
| | | | | | | [ruby-core:22434] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_chomp_bang): coderange may change.nobu2009-02-243-1/+10
| | | | | | | [ruby-core:22414] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-5/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_delete_bang): should recalculate coderange.nobu2009-02-243-2/+20
| | | | | | | [ruby-talk:329267] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-1/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_size): new method added. [ruby-core:22088]matz2009-02-242-0/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_scan_args): Allow specifying the number of trailingknu2009-02-245-9/+23
| | | | | | | | | | mandatory arguments right after the number of optional arguments only if the number of leading mandatory arguments is not omitted. * ext/socket/tcpserver.c (tcp_svr_init): Make use of it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_colors): new method added. a patchmatz2009-02-243-0/+32
| | | | | | | | from Alexander Beisig in [ruby-core:22331]. * ext/curses/curses.c (curses_color_pairs): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_scan_args): Revamp rb_scan_args() to compute theknu2009-02-242-78/+74
| | | | | | | | number of required and optional arguments precisely to prepare for a more informative error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-02-25svn2009-02-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_index, rb_ary_rindex): Emit a warning that aknu2009-02-242-0/+9
| | | | | | | given block is unused when an argument is specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add comment.akr2009-02-241-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sockaddr_obj): convert fe80:1::1 to fe80::1%1.akr2009-02-242-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reordered.akr2009-02-241-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_timestamp): support SCM_BINTIME.akr2009-02-243-2/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_timestamp): new method.akr2009-02-243-0/+68
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (main): split from exts and makes main program afternobu2009-02-245-11/+59
| | | | | | | | | | | | | | building exts with miniruby, to get rid of overwriting running program. [ruby-core:22339] * Makefile.in, win32/Makefile.sub (RUNCMD, MKMAIN_CMD): macros to run script file. * ext/extmk.rb (parse_args): added --command-output option which creates script file to make main program. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ripper.c): exec can't work on Windows.nobu2009-02-244-2/+9
| | | | | | | * ext/ripper/depend (.SUFFIXES): nmake doesn't have .y by default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (id.h): overwrites unconditinally.nobu2009-02-242-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger thannobu2009-02-242-0/+10
| | | | | | | long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (rb_disable_interrupt, rb_enable_interrupt): seenobu2009-02-242-2/+7
| | | | | | | USE_TRAP_MASK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_waitpid): last argument was missing.nobu2009-02-242-2/+9
| | | | | | | | * process.c (waitall_each): fixed typo. a patch from shinichiro.h <shinichiro.hamaji AT gmail.com> at [ruby-dev:38054]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_eq): remove unnecessary NaN check using isnan().matz2009-02-232-15/+9
| | | | | | | | comparison regarding NaN is false anyway. * numeric.c (flo_gt, flo_ge, flo_lt, flo_le, flo_eql): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_thread.rb: fix for environment where fork is notmame2009-02-232-3/+12
| | | | | | | available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_cleanup_func): unlock all locked mutexes even whenmame2009-02-233-11/+28
| | | | | | | forking. [ruby-core:22269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_minus): inline float operation.matz2009-02-232-0/+51
| | | | | | * insns.def (opt_lt, opt_gt): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (Need_Float): call rb_to_float() only when it is reallymatz2009-02-232-1/+4
| | | | | | needed. small performance improvement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_each): check #succ only when it is reallymatz2009-02-232-4/+9
| | | | | | needed. small performance improvement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-02-24svn2009-02-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#foreachline): removed wronglymatz2009-02-232-6/+5
| | | | | | resurrected method. [ruby-dev:38065] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (inspect_timespec_as_abstime): new function toakr2009-02-233-2/+54
| | | | | | | | | show struct timespec. (ancillary_inspect): use it for SCM_TIMESTAMPNS on GNU/Linux. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e