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

17920 Коммитов

Автор SHA1 Сообщение Дата
nobu 37c552e550 * string.c (str_buf_cat2): optimize since all second arguments are
constant literals.

* string.c (str_cat_char): unused now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 03:01:44 +00:00
nobu fd58dba97f * string.c (rb_hash_{uint{32,},end}): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 02:58:37 +00:00
nobu 5935818516 * configure.in (optflags): add -fomit-frame-pointer by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 02:58:24 +00:00
akr 50bbca9d5c * enum.c (enum_minmax): use struct for memo.
(enum_minmax_by): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 02:28:57 +00:00
akr 0ff9cf3625 fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 01:58:07 +00:00
nobu 810775bb20 * configure.in (warnflags): check all flags if each are available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 01:21:18 +00:00
nobu 6bf6f3d4c4 * vm_method.c (rb_method_entry_eq): suppressed a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-27 00:17:48 +00:00
naruse e662770dc9 * ext/json/ext/generator/generator.c: Documention patch by okkez.
[Bug #2075]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 20:37:06 +00:00
naruse 036c701bad String#inspect's encoding should be fixed.
* string.c (rb_str_inspect): result's encoding should be fixed.
  If default_internal is not nil, the encoding is default_internal.
  Else if default_external is not nil, the encoding is default_external.
  But the encoding is not ASCII-compatible, the encoding is replaced by
  US-ASCII.
  Characters in ASCII-incompatible encoding or non ASCII characters
  in other than the encoding will be \xXX escaped.

* string.c (str_buf_cat2): defined.

* string.c (prefix_escape): removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 20:17:52 +00:00
azav 45dc99aea4 Symbian build update to work with the latest PIPS version 1.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 19:39:23 +00:00
azav 7150182237 Update to work with the latest PIPS version 1.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 19:35:12 +00:00
azav 6b2942688c Update to work with the latest PIPS version 1.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 19:34:53 +00:00
azav 92d4a6d516 Update to work with the latest PIPS version 1.6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 19:34:27 +00:00
ko1 6ed425d55b * string.c: use rename-macro instead of RUBY_ALIAS_FUNCTION_TYPE.
Because build causes failure.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 17:02:43 +00:00
matz 3ca245a54c * vm_method.c (rb_method_entry_eq): method defined from same
block/proc should be equal.  [ruby-core:25755] [ruby-core:24791]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 14:59:09 +00:00
nobu f2103ee4a9 * st.c: moved murmur hash from string.c. [ruby-dev:39376]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 14:29:13 +00:00
azav e860f30bf1 * symbian/setup: Updated .mmp file generation due to blockinlining.c removal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 14:27:25 +00:00
azav 38473866bf * symbian/setup: Updated .mmp file generation due to blockinlining.c removal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 14:26:54 +00:00
yugui 0ed8771a44 * Makefile.in(test-rubyspec): explicitly executes run subcommand of
mspec.

* spec/README: typo fix

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 13:42:56 +00:00
nobu 25f43f4ab1 * st.c (COLLISION): improved collision log feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 08:53:15 +00:00
nobu bf4ab7f610 * string.c (hash): updated to MurmurHash 2.0 2009-09-19.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 07:48:33 +00:00
nobu 8367245839 * string.c (rb_hash_start): fixed shift width on 128bit platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 07:32:03 +00:00
nobu f23486592a * include/ruby/intern.h (rb_hash_{start,uint32,uint,end}): fixed
prototypes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 07:26:46 +00:00
marcandre 3a4e1d768d * lib/net/http.rb (transport_request): Handle timeout error by closing socket if exception raised. [ruby-core:20976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 04:27:07 +00:00
nobu dd7490d50d * lib: updated keywords.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 23:45:52 +00:00
ko1 f833dd2e24 * iseq.c (compile_string): rename to parse_string(), because
this function only parse String to NODE.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 23:36:34 +00:00
svn 5cc06ae864 * 2009-09-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 18:29:55 +00:00
akr fdb3e278f5 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 18:29:53 +00:00
usa d70e9a5568 * win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
replace MSVCRT's access().
  [ruby-core:25761]

* file.c (eaccess): workaround for recent MSVCRT is no longer needed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 07:04:25 +00:00
nobu 9d72cb269c * proc.c (missing_wrap): reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 04:48:54 +00:00
nobu a943745a42 * proc.c (missing_wrap): new_arg is already given if argc > 1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 04:05:51 +00:00
nobu 66a97945e3 * proc.c (mnew): fix for instance method of Module, BasicObject
and subclass of a class which overrides respond_to_missing?.
  based on a patch from Nikolai Lugovoi <nlugovoi AT gmail.com> in
  [ruby-core:25748].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 04:04:48 +00:00
nobu 8be423f51d * vm_method.c (check_definition): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 03:36:26 +00:00
nobu 44f7a34031 * vm_method.c (obj_respond_to_missing): added rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 03:33:26 +00:00
nobu 2c549ad5d3 * vm_method.c (rb_mod_method_defined): should return true or false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 02:56:52 +00:00
nobu bc7123e434 * vm_method.c (rb_mod_method_defined): should return true or false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-25 02:51:36 +00:00
ryan ff54193c83 Fixed heredoc to play with emacs better. Added :startdoc: to fix broken rdoc processing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 21:05:35 +00:00
marcandre 608267e04c * proc.c (Method#== doc): Fix doc, cf [ruby-core:24791]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 20:59:19 +00:00
marcandre 0618ca3d8d * hash.c (Hash#each): Fix documentation to reflect insertion order. A patch by Run Paint Run Run [ruby-core:23644] and [ruby-core:21231]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 18:56:22 +00:00
svn 64588c6416 * 2009-09-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 18:36:53 +00:00
marcandre fc01d42600 * hash.c (doc): doc fix, patch by Run Paint Run Run [ruby-core:23644]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 18:36:52 +00:00
akr e6f4473316 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 10:35:35 +00:00
matz c4b0b4c91c * proc.c (mnew): generate method object that wraps method_missing,
when #respond_to_missing? is defined.

* test/ruby/test_object.rb (test_respond_to_missing): add test
  suites for #respond_to_missing? changes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 04:42:28 +00:00
marcandre 399dace5ed * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn
[ruby-core:25740]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-24 00:42:23 +00:00
marcandre 089494fcd1 * load.c (Kernel#autoload?, Module#autoload?): added doc [ruby-core:19983]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 19:45:37 +00:00
nobu 39ea1c8c7c * ext/bigdecimal/lib/bigdecimal/math.rb (atan): atan(Infinity) is
PI/2.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:21:26 +00:00
nobu 1ef3ac4738 * ext/bigdecimal/lib/bigdecimal/math.rb (atan): reduce loop with
the formula of the double corner.  based on a patch from
  Masahiro Kanai (CanI) in [ruby-dev:39367].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:08:37 +00:00
kanemoto 12fcef8829 * dln.c (aix_loaderror): fixed typo. suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 16:18:59 +00:00
svn 8a52a566fe * 2009-09-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 15:19:16 +00:00
akr fc58a6c5bd * enum.c (enum_minmax): reduce comparison.
(enum_minmax_by): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 15:19:13 +00:00