kou
3acd222fa5
* lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.
...
* test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_simple):
Add a test for the extracted method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 15:08:59 +00:00
kou
83c02765e1
* test/xmlrpc/test_client.rb (XMLRPC::ClientTest::Fake::HTTP#started):
...
Add a missing empty line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 14:57:05 +00:00
akr
b23d9a8a63
* bignum.c (validate_integer_pack_format): Don't require a word order
...
flag if numwords is 1 or less.
(absint_numwords_generic): Don't specify a word order for
rb_integer_pack.
* hash.c (rb_hash): Ditto.
* time.c (v2w_bignum): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 14:40:16 +00:00
akr
c4b12333f7
* bignum.c (validate_integer_pack_format): Refine error messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 14:02:46 +00:00
akr
06b1671107
* bignum.c (validate_integer_pack_format): numwords argument added.
...
Move a varidation from rb_integer_pack_internal and rb_integer_unpack.
(rb_integer_pack_internal): Follow above change.
(rb_integer_unpack): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 13:28:33 +00:00
akr
17a5321c40
rb_integer_pack tests refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 13:15:56 +00:00
akr
d5a3818f8e
* bignum.c (rb_integer_pack_internal): Renamed from rb_integer_pack
...
and overflow_2comp argument added.
(rb_integer_pack): Just call rb_integer_pack_internal.
(rb_integer_pack_2comp): New function.
* internal.h (rb_integer_pack_2comp): Declared.
* sprintf.c (rb_str_format): Use rb_integer_pack and
rb_integer_pack_2comp to format binary/octal/hexadecimal integers.
(ruby_digitmap): Declared.
(remove_sign_bits): Removed.
(BITSPERDIG): Ditto.
(EXTENDSIGN): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 12:06:40 +00:00
knu
b7597efb48
Update documentation for pkg_config().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 08:25:40 +00:00
knu
832525515a
Fix the mail address of Matz; ruby-lang.jp does not exist.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 08:01:38 +00:00
nobu
c5c201f624
array.c: fix false assertion in ary_make_shared
...
* array.c (ary_shrink_capa): shrink the capacity so it fits just with
the length.
* array.c (ary_make_shared): release never used elements from frozen
array to be shared. [ruby-dev:47416] [Bug #8510 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 07:15:24 +00:00
nobu
4cdd6f6ab8
* eval_error.c (error_print): reduce RARRAY_AREF().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 06:57:04 +00:00
zzak
df4abd9b3b
* doc/re.rdoc: Rename to doc/regexp.rdoc
...
* re.c: Update rdoc include for rename of file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 03:50:33 +00:00
tarui
c0ce877365
* eval_error.c (error_print): keep that errat is non-shady object.
...
and guard errat from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 22:14:27 +00:00
svn
33e6f434ed
* 2013-06-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 20:06:58 +00:00
eregon
8c6674ef03
* ext/racc/cparse/cparse.c: use rb_ary_entry() and
...
rb_ary_subseq() instead of RARRAY_PTR.
Based on a patch by Dirkjan Bussink. See Bug #8399 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 20:06:53 +00:00
kazu
0ab44dbc3c
fix a typo
...
* array.c (rb_ary_new_from_values): fix a typo. pointed out by nagachika.
http://d.hatena.ne.jp/nagachika/20130610/ruby_trunk_changes_41199_41220
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 14:54:21 +00:00
akr
46bb1a9f92
Update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 13:51:20 +00:00
ktsj
baabb76cd7
* test/ruby/test_beginendblock.rb (test_exitcode_in_at_exit): fix NameError.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 13:28:58 +00:00
akr
780ab06a0e
Update a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 13:10:11 +00:00
kou
e214b1b6d3
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): Fix indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 12:51:48 +00:00
kou
f6921a3cd1
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): Add missing return
...
value assignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 12:50:45 +00:00
naruse
52a802a428
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): work around for Ubuntu
...
13.04's getaddrinfo issue with mdns4. [ruby-list:49420]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 11:59:36 +00:00
akr
6735633663
Update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 10:55:08 +00:00
akr
0e8caa7d0f
* bignum.c (rb_integer_pack): Returns sign instead of words.
...
(absint_numwords_generic): Follow the above change.
(big2str_base_powerof2): Follow the above change.
* internal.h: Ditto.
* hash.c (rb_hash): Ditto.
* pack.c (pack_pack): Ditto.
* random.c (int_pair_to_real_inclusive): Ditto.
(rand_init): Ditto.
(random_load): Ditto.
(limited_big_rand): Ditto.
* time.c (v2w_bignum): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 10:37:39 +00:00
ko1
a8aaf13392
* gc.c (rgengc_remember): permit promoted object.
...
(rb_gc_writebarrier -> remember)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 08:21:08 +00:00
ko1
a03ac78b2c
* gc.c (RVALUE_PROMOTE): fix parameter name (x' to
obj')
...
and make it inline function (like RVALUE_PROMOTE).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 08:15:31 +00:00
kazu
d917e65143
fix a typo of r41205
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 08:00:04 +00:00
kazu
1188d9291c
add missing space
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 08:00:01 +00:00
ko1
f8ba9a1f60
* array.c (rb_ary_new_from_values): add assertion
...
(ary should be young object).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 07:23:36 +00:00
ko1
dd96561f76
* gc.c (wmap_mark): check allocation of `w->obj2wmap'.
...
(no-allocation `w->obj2wmap' will be NULL pointer reference)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 07:12:14 +00:00
nobu
09de2b0544
eval_error.c: use checking functions
...
* eval_error.c (error_print): use checking functions instead of
catching exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 06:36:02 +00:00
nobu
b82ded24cc
eval_error.c: restore errinfo
...
* eval_error.c (error_print): restore errinfo for the case new
excecption raised while printing the message. [ruby-core:55365]
[Bug #8501 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 06:35:37 +00:00
nobu
222d028808
eval_error.c: reduce setjmp
...
* eval_error.c (error_print): reduce calling setjmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 06:34:28 +00:00
nobu
c2b4f88fcb
test_beginendblock.rb: rename methods
...
* test/ruby/test_beginendblock.rb: rename methods, tests always what
"should" happen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 06:33:58 +00:00
akr
8c239f35de
* bignum.c (integer_unpack_num_bdigits_small: Extracted from
...
rb_integer_unpack.
(integer_unpack_num_bdigits_generic): Ditto.
(integer_unpack_num_bdigits_bytes): New function.
(rb_integer_unpack): Use above functions.
Return a Bignum for INTEGER_PACK_FORCE_BIGNUM evenwhen the result
is zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-10 03:12:44 +00:00
akr
192085bad3
* bignum.c (absint_numwords_small): New function.
...
(absint_numwords_generic): Use absint_numwords_small if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 20:39:05 +00:00
svn
79042beece
* 2013-06-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 16:08:59 +00:00
akr
f30d662c24
* bignum.c (absint_numwords_bytes): New function.
...
(absint_numwords_generic): Extracted from rb_absint_numwords.
(rb_absint_numwords): Use absint_numwords_bytes if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 16:08:54 +00:00
akr
d395be138c
Update an error message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 13:03:45 +00:00
akr
9cb1452318
* bignum.c (rb_absint_numwords): Return (size_t)-1 when overflow.
...
Refine variable names.
(rb_absint_size): Refine variable names.
* internal.h (rb_absint_size): Refine an argument name.
(rb_absint_numwords): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 12:37:38 +00:00
akr
f5ad120b97
* bignum.c (rb_absint_numwords): Renamed from rb_absint_size_in_word.
...
* internal.h (rb_absint_numwords): Follow the above change.
* pack.c (pack_pack): Ditto.
* random.c (rand_init): Ditto.
(limited_big_rand): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 07:53:20 +00:00
akr
837392b452
* bignum.c (rb_integer_pack): numwords_allocated argument removed.
...
* internal.h (rb_integer_pack): Follow the above change.
* hash.c (rb_hash): Ditto.
* time.c (v2w_bignum): Ditto.
* pack.c (pack_pack): Ditto.
* random.c (int_pair_to_real_inclusive): Ditto.
(rand_init): Ditto.
(random_load): Ditto.
(limited_big_rand): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 05:53:00 +00:00
akr
f6757f080c
* bignum.c (big2str_base_powerof2): New function.
...
(rb_big2str0): Use big2str_base_powerof2 if base is 2, 4, 8, 16 or 32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-09 00:36:58 +00:00
naruse
4ff3b7cf05
Revert r41179 "partially revert r41163 because r41173 didn't fix failure"
...
r41173 is not actually tested; it seems good.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 16:49:49 +00:00
akr
e3bc7eec5f
* hash.c (rb_hash): Use rb_integer_pack to obtain least significant
...
long integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 16:00:16 +00:00
svn
893a8bb653
* 2013-06-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 15:57:09 +00:00
akr
58e67628ae
Fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 15:57:05 +00:00
akr
633e4949bd
* numeric.c (rb_num_to_uint): Use rb_absint_size instead of
...
RBIGNUM_LEN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 14:57:28 +00:00
kazu
ceb6d94265
fix a typo of r41163
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 14:26:04 +00:00
akr
5a9984d7aa
* marshal.c (r_object0): Use rb_integer_unpack.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-08 14:14:46 +00:00