nobu
b45f04a66f
* dln.c (rb_w32_check_imported): workaround for VC6.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 16:07:54 +00:00
mame
db6099161b
* proc.c (mnew): initialize a field. a patch from Takahiro Kambe.
...
[ruby-dev:41312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 13:25:29 +00:00
mame
0ee8d28e9e
* eval.c (setup_exception): let SystemStackError#backtrace return an
...
single element array instead of string itself. [ruby-core:30196]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 13:20:58 +00:00
mame
3cd67ce505
* parse.y (parser_read_escape, parser_tokadd_escape): allow a hex or
...
octal encoded character after \c. This seemed to be prohibited at
r13836, but its ChangeLog mentions nothing about this prohibition.
So I assume this prohibition is not intended. [ruby-core:27229]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:54:37 +00:00
yugui
11e078fb04
* ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):
...
fixes "NoMethodError: undefined method `[]=' for nil:NilClass"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:20:02 +00:00
nobu
414727ca70
* win32/win32.c (rb_w32_conv_from_wchar): use ECONV_UNDEF_REPLACE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 09:41:43 +00:00
mame
7e7420cc85
* proc.c (proc_binding): don't propagative filename and line_no of
...
binding that is created from C level. [ruby-dev:41322]
* vm_eval.c (eval_string_with_cref): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 08:18:49 +00:00
nobu
6c05f91b3b
* dln.c (rb_w32_check_imported): check if extension library to be
...
loaded imports from different ruby dll.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 06:09:40 +00:00
nobu
fdac9a36c2
* common.mk (dln_find.o): fix dependency.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 05:55:41 +00:00
nobu
2d8bbfa5da
* common.mk (dln_find.o): fix dependency.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 05:41:50 +00:00
nobu
40caeb6bd1
* error.c (rb_loaderror): use locale string, not ascii-8bit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 04:55:29 +00:00
nobu
df54a2e6be
* cont.c (fiber_set_stack_location), iseq.c (prepare_iseq_build),
...
node.c (dump_node): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 02:46:16 +00:00
nobu
e2f2cf425c
* include/ruby/missing.h (signbit): add missing prototype.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 02:39:18 +00:00
tenderlove
37910b13fb
* ext/psych/lib/psych/visitors/json_tree.rb: using factory methods for
...
node creation
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 02:33:05 +00:00
nobu
d9615c85a3
* ext/iconv/iconv.c (rb_iconv_sys_fail): fix number of arguments.
...
a patch by Masaya TARUI <tarui AT prx.jp>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 01:49:49 +00:00
svn
bbebd01d08
* 2010-05-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-15 17:25:20 +00:00
kanemoto
fa0bec050f
* configure.in: can not load libruby.so if gcc is used with
...
--enable-shared on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-15 17:25:17 +00:00
nobu
44c9592d62
* ext/iconv/iconv.c (rb_iconv_sys_fail): raise BrokenLibrary if
...
errno is not set. [ruby-dev:41317]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-15 08:16:18 +00:00
usa
ff5c6d343c
* test/ruby/test_rubyoptions.rb (test_segv_test): VC runtime adds some messages
...
when SEGV occurs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-14 04:59:15 +00:00
usa
d863f7af0c
* test/ruby/test_process.rb: skip some tests on Windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-14 04:34:37 +00:00
nobu
4eb19660e9
* marshal.c (w_float): strip ".0" from end for rubyspec.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 22:27:10 +00:00
nobu
ccbdebf5a9
* test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread):
...
use opened pipes by with_pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 22:09:08 +00:00
svn
308be9c8a1
* 2010-05-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 16:20:29 +00:00
mame
50587316b8
* vm_core.c (rb_thread_struct): add a field for sigaltstack.
...
* thread_pthread.c (thread_start_func_1): initialize machine stack
information.
* thread.c (thread_start_func_2): set sigaltstack for each sub thread.
[ruby-core:24540] [ruby-core:30207]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 16:20:26 +00:00
akr
a22df39467
* missing/ffs.c (ffs): fixed for non-zero values.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 12:41:29 +00:00
akr
cb4133c8ab
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 12:39:45 +00:00
nobu
fa086089fb
* test/scanf/test_scanf.rb (ScanfTests#each_test): yield in order.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 10:06:25 +00:00
nobu
30f637024b
* ext/io/console/console.c (get_write_fd): return primary fd if no
...
io is tied for writing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 09:45:29 +00:00
nobu
8653bd97de
* test/ruby/test_io_m17n.rb (TestIO_M17N#test_cbuf_select),
...
(TestIO_M17N#test_textmode_paragraphmode): close pipes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 09:45:12 +00:00
usa
daac3ed0b4
* io.c (swallow): should use more_char() instead of fill_cbuf().
...
suggested by akr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 09:16:32 +00:00
nobu
552243aa15
* ext/io/console/console.c (console_set_echo, console_echo_p): use
...
primary fd. [ruby-dev:41309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 08:56:11 +00:00
nobu
483ef372b1
* vm_insnhelper.c (vm_invoke_block): iseq_t.type is VALUE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 07:19:59 +00:00
usa
266a9ea5f3
* test/ruby/test_process.rb: skip some tests on Windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 06:32:21 +00:00
marcandre
4afa9ed041
* array.c: Harmonize documentation, in particular regarding:
...
- methods returning enumerators
- array methods and argument naming (array -> ary, an_array -> new_ary)
- minor improvements, typo fixed and styling issues
Other documentation errors fixed:
- return value was self instead of a new array (or vice-versa) for
Array#{pop,shift,permutation,repeated_permutation,keep_if}
- Array#rindex was missing the form with a block.
* dir.c: ditto.
* enum.c: ditto. Modified Enumerable#reverse_each' documentation to clarify
that #each will be finish before any element is yielded.
* error.c: ditto.
* gc.c: ditto.
* hash.c: ditto.
* io.c: ditto. IO#{codepoints,each_codepoint} fixed as per [ruby-core:23948]
* numeric.c: ditto.
* range.c: ditto.
* string.c: ditto.
* struct.c: ditto.
* vm_eval.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 05:49:55 +00:00
usa
8092a810ff
* test/ruby/test_io_m17n.rb (test_stdin_external_encoding_with_reopen): skip
...
on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 04:37:14 +00:00
nobu
cf32125cff
* marshal.c (w_float): use minimal representation.
...
* numeric.c (ruby_dbl2cstr): split from rb_float_new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 04:30:07 +00:00
nobu
04daf205b6
* vm_core.h (rb_vm_get_sourceline): moved from eval_intern.h for
...
vm_dump.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 04:09:26 +00:00
usa
44d8ab7203
* io.c (swallow): small optimize.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 04:03:01 +00:00
usa
6f3791f465
[Bug #1576 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 03:56:56 +00:00
usa
ef7992801d
* io.c (swallow): support text mode and UTF-16/32 as internal encoding.
...
* io.c (io_shift_cbuf): read and throw it away when str is NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 03:55:19 +00:00
nobu
2603874f8f
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 02:57:14 +00:00
usa
720151bc63
* win32/Makefile.sub: link with ffs.obj.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 00:45:48 +00:00
svn
86fa4ec8a7
* 2010-05-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 22:39:15 +00:00
akr
5920d5440f
* ext/sdbm/_sdbm.c: include unistd.h before sdbm.h for off_t.
...
fix compilation problem on FreeBSD 6.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 22:39:10 +00:00
akr
b6d3c53724
* include/ruby/intern.h (rb_quad_pack): deprecated.
...
(rb_quad_unpack): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 14:49:13 +00:00
akr
48eb4a7923
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 14:16:13 +00:00
akr
54c0e4b76e
new test file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 14:15:30 +00:00
akr
dd6b923bf8
fix the comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 13:50:39 +00:00
akr
a00247f57a
* time.c (rb_big_abs_find_minbit): use ffs().
...
* configure.in: check ffs().
* missing/ffs.c: new file.
* include/ruby/missing.h (ffs): declared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 13:23:20 +00:00
nobu
d80a859d98
* numeric.c (flo_to_s): fixed broken output including nuls.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 07:43:14 +00:00