Граф коммитов

18231 Коммитов

Автор SHA1 Сообщение Дата
nobu 0d76affdf9 * ext/stringio/stringio.c (strio_data_type): typed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 13:14:52 +00:00
nagai aacc33649a * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 12:22:42 +00:00
nobu 121d15ddda * string.c (chopped_length): get rid of unexpected exception.
see [ruby-core:26336].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 07:36:54 +00:00
akr ed58a66fa8 * gc.h (SET_MACHINE_STACK_END): use __i386.
Some compiler may not define __i386__.
  Solaris 64-bit Developer's Guide:
  http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 06:54:03 +00:00
shugo 613a324f61 * lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
a Pathname instance into a string.  [ruby-core:26237]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 06:47:41 +00:00
kazu 718a78b76a add commit log of r25499
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 03:56:31 +00:00
nobu 206a928130 * gc.h (SET_MACHINE_STACK_END): use __i386__ instead of __i386,
and explicit size qualifiers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 03:30:18 +00:00
naruse be6ff25403 * gc.c (SET_MACHINE_STACK_END): add x86_64 version by nobu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 01:29:22 +00:00
usa 70b881b5cd * ChangeLog: typo. this commit fixed [ruby-core:26166]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 01:08:09 +00:00
naruse 404ed4f8d4 * vm_exec.c (DECL_SC_REG): use __clang__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 00:29:06 +00:00
nobu 609030816b * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb
on some platforms.  [ruby-core:26332]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:56:13 +00:00
nagai 226c12d4e9 * ext/tk/tcltklib.c: mistake on operation. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:21:18 +00:00
kazu 3c981342b6 fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:12:04 +00:00
kazu ab77f00b04 * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * test/ripper/test_filter.rb: add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:11:59 +00:00
matz 33c5abbefa * gc.c (garbage_collect_with_gvl): do not garbage_collect when
dont_gc flag turned on.  [ruby-core:26327]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 23:06:39 +00:00
nagai 435f18f513 * ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
with old ruby 1.8.x.
* ext/tk/tkutil/tkutil.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 22:40:22 +00:00
naruse 1fe610b588 * vm.c (invoke_block_from_c): return Qnil when its iseq is
SPECIAL CONST. [ruby-core:26335]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 20:58:25 +00:00
naruse 2215293a66 * vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
LLVM/clang defines __GNUC__ but doesn't have __asm__..

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 20:14:16 +00:00
nobu c21350f902 * win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
different name from RUBY_ARCH.  [ruby-core:26324]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 18:45:34 +00:00
marcandre 8d446fe1eb * array.c (rb_ary_cmp): Array#<=> returns nil when comparison fails
[ruby-core:26316]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 11:06:17 +00:00
matz 327d58f720 * hash.c (default_proc_arity_check): new support function.
* hash.c (rb_hash_initialize): should do arity check as #default_proc=.
  [ruby-core:26281]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 10:30:15 +00:00
nobu 66f5c5eb30 * man/*.1: suppressed warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 06:44:31 +00:00
nagai dc28ce1b0b * ext/tk/lib/remote-tk.rb: typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 04:26:57 +00:00
mame 1996a4af69 * ruby.c (usage): -T and -W descriptions updated. see
[ruby-dev:39539]

* man/ruby.1: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 03:41:01 +00:00
nobu 9350a57463 * io.c (io_fwrite): adjust stdio file position after direct write on
BSDish platforms.   [ruby-core:26300]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 03:06:29 +00:00
nobu 475e705b2f * ext/dl/handle.c (dlhandle_sym): fixed an invalid local variable
declaration.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 06:44:26 +00:00
nobu d64d462f7a * io.c (io_cntl): F_DUPFD is platform dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 04:34:00 +00:00
nobu b6c007ac85 * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
variable declaration.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 01:19:11 +00:00
nobu 74919cd970 * test/dl/test_handle.rb: svn:eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 01:09:21 +00:00
tenderlove 3f6f9f87ca * ext/dl/handle.c (**) adding documentation
* test/dl/test_handle.rb (test_NEXT) testing the NEXT handle

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:56 +00:00
tenderlove 1578edbafc * ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles can
be enabled and disabled for closure on GC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:41 +00:00
tenderlove 159e6439c0 * ext/dl/handle.c (**) adding documentation
* test/dl/test_handle.rb (**) testing to_i and initialize

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:29 +00:00
tenderlove 60f86b2edb * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)
* test/dl/test_handle.rb (**) testing sym behavior

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:15 +00:00
tenderlove c30de1e38e * ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Adding
documentation and tests for current functionality.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:02 +00:00
tenderlove a631b5df36 * ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 21:56:50 +00:00
marcandre c038e9003c * lib/matrix.rb (**): Optimization (up to 45% faster)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 20:55:40 +00:00
matz 55bf7f9d40 * enum.c (enum_flat_map): new method that concatenates the values
from given block.  also provides alias #collect_concat.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 17:01:38 +00:00
matz ba3bfda7a2 * hash.c (rb_hash_set_default_proc): checks arity of defalt_proc
of a Hash.  [ruby-core:26087]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 16:53:11 +00:00
svn 5f01ed26f2 * 2009-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 16:48:08 +00:00
matz 51f033f853 * object.c (rb_obj_cmp): defines Object#<=>. [ruby-core:24063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 16:48:05 +00:00
marcandre 66ed25f633 * lib/matrix (transpose): bug fix for Matrix.empty(0,42).t
cf [ruby-core:23598]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:05:10 +00:00
marcandre 90d244aded * lib/matrix (column): handle negative arguments. cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:04:56 +00:00
marcandre e5af8e940b * lib/matrix (minor): Also handle negative arguments like Array#[]
cf [ruby-core:23598]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 06:04:41 +00:00
matz 5d6440c748 * class.c (rb_class_new): move class check to rb_check_inheritable().
* class.c (rb_check_inheritable): should not allow subclass of
  class Class.  [ruby-core:26225]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 23:37:14 +00:00
tenderlove 5ee251bdad * ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)
[ruby-core:25762]
* ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 16:44:41 +00:00
svn 1eef1cdc56 * 2009-10-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 15:38:09 +00:00
akr 843acddbe1 * io.c (io_cntl): update max file descriptor by the result of
fcntl(F_DUPFD).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 15:38:06 +00:00
akr 525be7f048 fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 13:30:29 +00:00
nobu 32df7768b8 * configure.in (target, target_alias): replace with real cpu.
* mkconfig.rb: build* are not needed in rbconfig.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:25:56 +00:00
nobu a56b1bc27b * configure.in (warnflags): use -Wextra only when
-Wno-missing-field-initializers is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 05:22:53 +00:00