svn
fe017d1450
* 2009-03-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 05:10:41 +00:00
nobu
d988d09458
* test/ruby/test_path.rb (test_basename): test for r19595.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 05:10:36 +00:00
akr
3888bfecf2
* vm_eval.c (rb_iterate): use volatile to suppress warnings.
...
* eval.c (ruby_cleanup): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-28 12:56:10 +00:00
akr
cfe9dcb886
* eval_error.c (error_print): use volatile to suppress warnings.
...
* vm_eval.c (eval_string_with_cref): ditto.
* thread.c (rb_exec_recursive): ditto.
* eval_jump.c (rb_exec_end_proc): ditto.
* eval.c (ruby_exec_node): ditto.
(rb_longjmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-28 11:12:36 +00:00
akr
2ba6eec1fa
* ext/socket/ancdata.c (ancillary_unix_rights): check message type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-28 09:29:26 +00:00
akr
8746e342bc
* lib/net/http.rb: suppress warnings of non-existing instance variable
...
access for SSL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-28 07:19:55 +00:00
akr
54cd7ea168
* ext/socket/lib/socket.rb (BasicSocket#connect_address): returns ::1
...
if the address is IPv4-mapped IPv6 address for 0.0.0.0 for MacOS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-28 06:05:44 +00:00
kazu
2f83f7a7f4
update doc (add Pathname#binread)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 19:51:56 +00:00
kazu
8e8e5e770f
s/extention/extension/g
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 17:12:50 +00:00
svn
4012672433
* 2009-02-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 15:21:28 +00:00
akr
5fb1faf2bf
* ext/socket/raddrinfo.c: suppress strict-aliasing warning with
...
gcc version 4.4.0 20090219 (Red Hat 4.4.0-0.21) on Fedora 11 Alpha.
* ext/socket/socket.c: ditto.
* ext/socket/unixsocket.c: ditto.
* ext/socket/sockport.h (SS_LEN): defined.
(SET_SS_LEN): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 15:21:23 +00:00
akr
d8c66c4333
* ext/socket/ancdata.c (bsock_recvmsg_internal): close FDs passed by
...
SCM_RIGHTS unless :scm_rights=>true is given.
(discard_cmsg): extracted from rsock_discard_cmsg_resource.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 14:23:54 +00:00
akr
a7d581fa2f
* ext/openssl/lib/openssl/buffering.rb: define Buffering module under
...
OpenSSL. [ruby-dev:37906]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 13:15:35 +00:00
akr
7f247b9d0c
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 13:10:25 +00:00
akr
0f82f65cee
* lib/test/unit/assertions.rb: don't define assert_not_* if already
...
overridden.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 13:10:07 +00:00
akr
f252633804
* util.c: fix SEGV by test_time.rb with
...
gcc version 4.4.0 20090219 (Red Hat 4.4.0-0.21) on Fedora 11 Alpha.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 13:05:30 +00:00
nobu
506af65de1
* compile.c (cdhash_type, iseq_set_sequence): should not call
...
methods of the argument of case, to keep the semantics of
case/when. [ruby-dev:38079]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 09:30:53 +00:00
nobu
88d63339b3
* file.c (file_load_ok): cygwin allows to open directories.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 09:14:36 +00:00
nobu
8d325b6bbc
* file.c (file_load_ok): cygwin allows to open directories.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 09:14:17 +00:00
nobu
be7679308b
* gc.c (ruby_get_stack_grow_direction): no needs to use thread
...
here, and not initialized yet. [ruby-core:22439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 09:01:21 +00:00
nobu
12331d4939
* file.c (file_load_ok): checks if regular file, except for the
...
platform disallows to open directories, e.g. cygwin.
[ruby-dev:38097], [Bug #1221 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 08:45:26 +00:00
nobu
c660a9c466
* include/ruby/intern.h (rb_io_get_io): added prototype.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 08:35:56 +00:00
nobu
5f47ed9b59
* file.c (file_load_ok): checks if regular file. [ruby-dev:38097]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 06:49:43 +00:00
usa
c691d55bcd
* numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le, flo_eql): revert
...
isnan() checks for VC++6.
* insns.def (opt_lt, opt_gt): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 05:42:06 +00:00
svn
6792751d4f
* 2009-02-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 05:23:16 +00:00
nobu
1942710d42
* lib/ostruct.rb (modifiable): check if really frozen.
...
[ruby-core:22559]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-27 05:23:10 +00:00
akr
770f854176
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 14:39:12 +00:00
akr
7f44badcbe
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 14:18:09 +00:00
akr
ecb22ce2c5
* ext/socket/lib/socket.rb (BasicSocket#connect_address): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 14:15:39 +00:00
nobu
cbc7f1b89b
* hash.c (hash_foreach_iter): fix for prototype.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 10:29:13 +00:00
nobu
25d66aebcc
* common.mk (INSNS, newline.c, miniprelude.c, prelude.c),
...
(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
2009-02-26 09:36:13 +00:00
usa
4176051753
* test_fork.rb: no need to test if fork(2) is not implemented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 05:02:21 +00:00
usa
3eff6d398b
* test_thread.rb: broken test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 05:01:03 +00:00
usa
5fb7052bb9
* util.c (valid_filename): use our own implementation of open(),
...
close() and unlink().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 04:31:21 +00:00
nobu
905c157917
* iseq.c (cdhash_each): resurrects internal literals.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 04:23:21 +00:00
usa
2c288bf91f
* include/ruby/win32.h (rb_w32_wopen): prototype forgotten.
...
* 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
2009-02-26 01:58:20 +00:00
akr
2276b2f904
* ext/socket/mkconstants.rb: more MSG_* constants.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 16:35:05 +00:00
svn
20bb7abc6e
* 2009-02-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 15:26:30 +00:00
akr
e6f0b1de89
* ext/socket/option.c (sockopt_level): extracted from sockopt_level_m.
...
(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
2009-02-25 15:26:25 +00:00
akr
1ff020df70
* ext/socket/ancdata.c (ancillary_unix_rights): raise
...
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
2009-02-25 14:24:10 +00:00
akr
56c52c1da8
* ext/socket/ancdata.c (ancillary_s_unix_rights): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 14:19:24 +00:00
akr
c17b915eb8
* ext/socket/unixsocket.c (unix_recv_io): prevent FD leak when 2 fd is
...
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
2009-02-25 14:03:42 +00:00
usa
a898f0fb4b
* io.c (sysopen_func, rb_sysopen_internal, rb_sysopen): open file
...
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
2009-02-25 08:36:45 +00:00
usa
3540727af5
* win32/Makefile.sub (config.status): use un.rb as cp instead of
...
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
2009-02-25 06:07:10 +00:00
nobu
dd43561fd6
* string.c (rb_str_each_line): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 03:29:25 +00:00
nobu
43b9684962
* string.c (rb_str_force_encoding): should clear coderange at changing
...
encoding. [ruby-core:22437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 03:28:00 +00:00
nobu
ac9d09ba3c
* io.c (rb_io_getline_1): enables limit even if rs is given.
...
[ruby-core:22434]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 03:06:12 +00:00
akr
9594c893f7
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 23:46:39 +00:00
nobu
6dd9388545
* string.c (rb_str_chomp_bang): coderange may change.
...
[ruby-core:22414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 17:28:56 +00:00
akr
01e9a7be61
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 17:18:55 +00:00