marcandre
ef83d7a928
* lib/matrix.rb (determinant): Trivial optimization (thanks to Benoit Daloze)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 21:09:31 +00:00
marcandre
914efd0b60
* proc.c (proc_lambda, unnamed_parameters): Small documentation fixes.
...
* re.c: ditto
* string.c: ditto
* time.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 21:07:46 +00:00
svn
410ae9d41b
* 2010-05-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 21:07:42 +00:00
marcandre
7729de4d91
* array.c: Documentation: change => in call-seq to ->.
...
Harmonize "#=>" in examples. [ruby-core:30206]
* bignum.c: ditto
* class.c: ditto
* compar.c: ditto
* cont.c: ditto
* dir.c: ditto
* encoding.c: ditto
* enum.c: ditto
* enumerator.c: ditto
* error.c: ditto
* eval.c: ditto
* file.c: ditto
* gc.c: ditto
* io.c: ditto
* load.c: ditto
* marshal.c: ditto
* math.c: ditto
* numeric.c: ditto
* object.c: ditto
* pack.c: ditto
* proc.c: ditto
* process.c: ditto
* random.c: ditto
* range.c: ditto
* re.c: ditto
* ruby.c: ditto
* signal.c: ditto
* sprintf.c: ditto
* string.c: ditto
* struct.c: ditto
* thread.c: ditto
* time.c: ditto
* transcode.c: ditto
* variable.c: ditto
* vm_eval.c: ditto
* vm_method.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 21:07:33 +00:00
mame
e181ae5391
* process.c: suppress warning for signed and unsigned type
...
inconsistency.
* ext/psych/parser.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
* ext/syck/rubyext.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 13:21:17 +00:00
mame
0f074e6546
* .gitignore: updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 12:31:21 +00:00
usa
d165fa2504
* win32/win32.c (argv_size): merged into join_argv() to maintain the
...
agreement with it. removed code has a calclulation bug.
fixed [Bug#2388]
* win32/win32.c (join_argv): calc and return the length of joined
argv.
the cause of the original bug was clarified by Masaya TARUI
<tarui AT prx.jp> and the solution was suggested by him, too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 12:15:47 +00:00
naruse
f8d97b0026
* enc/iso_2022_jp.h: add CP50220.
...
* enc/trans/iso2022.trans: add converter for CP50220.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 06:28:16 +00:00
usa
6b15bccfdf
* test/ruby/test_dir_m17n.rb: changes for windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 02:07:00 +00:00
usa
fef3c0a415
* lib/fileutils.rb (FileUtils::Entry_#entries): returns pathname in
...
UTF-8 on Windows to allow FileUtils accessing all pathnames
internally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 00:41:56 +00:00
tenderlove
2f39988511
* ext/psych/lib/psych/emitter.rb: removing unused file.
...
* ext/psych/lib/psych/json/tree_builder.rb: moving tree builder to an
event based external class.
* ext/psych/lib/psych/tree_builder.rb: adding an end_stream event.
* ext/psych/lib/psych/visitors/json_tree.rb: using event based AST
builder.
* ext/psych/lib/psych/visitors/yaml_tree.rb: using event based AST
builder.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 23:50:23 +00:00
nobu
d62a9f00b8
* dln.c (dln_load): check imported addresses only when compiled
...
for ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 16:23:19 +00:00
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