nobu
c8932036d2
proc.c: constify
...
* proc.c (method_callable_method_entry): constify data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 10:10:05 +00:00
ktsj
02377a3a79
* lib/net/http/header.rb: [DOC] add documentation that
...
Net::HTTPHeader#{each_header,each_name,each_capitalized_name,
each_value,each_capitalized} without block returns an enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:46:48 +00:00
ktsj
6da2214119
* lib/net/http/header.rb (Net::HTTPHeader#{each_header,each_name,
...
each_capitalized_name,each_value,each_capitalized}): Return
sized enumerators.
* test/net/http/test_httpheader.rb: add test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:46:46 +00:00
ktsj
803177b38e
* test/net/http/test_httpheader.rb: add missing test of
...
Net::HTTPHeader#each_capitalized_name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:46:43 +00:00
ktsj
60287eab74
* lib/set.rb: [DOC] add documentation that Set#{delete_if,keep_if,collect!,reject!,select!,
...
classify,divide} without block returns an enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:07:01 +00:00
ktsj
80ccb8e86f
* lib/set.rb (Set#{delete_if,keep_if,collect!,reject!,select!,classify,divide},
...
SortedSet#{delete_if,keep_if}): Return sized enumerators.
* test/test_set.rb: add test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:06:59 +00:00
svn
c8ca48970e
* 2016-05-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:06:59 +00:00
ktsj
315a136ec0
* test/test_set.rb: add missing test of Set#select!.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-04 09:06:58 +00:00
kazu
8ef6dacb24
Update result of 123456789 ** -2
...
* numeric.c: [DOC] Update result of 123456789 ** -2.
[ruby-dev:49606] [Bug #12339 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 14:31:40 +00:00
yui-knk
5bc03ef459
* internal.h (RCOMPLEX_SET_IMAG): undef RCOMPLEX_SET_IMAG
...
instead of duplicated undef RCOMPLEX_SET_REAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 14:12:02 +00:00
yui-knk
c949686d02
* complex.c (rb_complex_set_imag): Fix to properly set imag
...
of complex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 13:54:19 +00:00
naruse
03cbafcf23
* configure.in (warnflags): use -std=gnu99 instead of
...
-std=iso9899:1999. [Feature #12336 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 13:20:50 +00:00
naruse
cdef0bc833
* string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcount
...
only if it can use SSE 4.2 POPCNT whose latency is 3 cycle.
* internal.h (rb_popcount64): use __builtin_popcountll because now
it is in fast path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 13:14:30 +00:00
nobu
e0611820df
parse.y: trace elsif
...
* parse.y (new_if_gen): set newline flag to NODE_IF to trace all
if/elsif statements. [ruby-core:67720] [Bug #10763 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 05:19:20 +00:00
nobu
e0a0c2b802
eval.c: constify
...
* eval.c (extract_raise_opts): constify argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-03 01:22:18 +00:00
svn
324879716e
* 2016-05-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 21:04:18 +00:00
normal
ebfb401e77
process.c (disable_child_handler_fork_child): initialize handler for SIGPIPE
...
This only happens on the !POSIX_SIGNAL case; but one may
test with the following:
--- a/process.c
+++ b/process.c
@@ -3479,6 +3479,7 @@ disable_child_handler_fork_parent(struct child_handler_disabler_state *old)
#endif
}
+#undef POSIX_SIGNAL
/* This function should be async-signal-safe. Actually it is. */
static int
disable_child_handler_fork_child(struct child_handler_disabler_state *old, char *errmsg, size_t errmsg_buflen)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 21:04:17 +00:00
usa
3e5dc499a8
* win32/win32.c, include/ruby/win32.h (rb_w32_utruncate): implements new
...
truncate alternative which accepts UTF-8 path.
* file.c (truncate): use above function.
[Bug #12340 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 14:05:19 +00:00
svn
7f50d69c4a
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 14:03:22 +00:00
usa
42ebe37b88
* test/ruby/test_file_exhaustive.rb: test UTF-8 filename. see [Bug #12340 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 14:03:21 +00:00
naruse
d0fbdb005c
* re.c (str_coderange): to avoid function call when the string already
...
has coderange information.
* re.c (rb_reg_prepare_enc): add shortcut path when the regexp has
the same encoding of given string.
* re.c (rb_reg_prepare_re): avoid duplicated allocation of
onig_errmsg_buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 12:04:04 +00:00
kazu
77a99fd4d5
Update rdoc of Integer#modulo [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 11:46:02 +00:00
kazu
a0ab5a325b
fix a typo [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 11:46:01 +00:00
kazu
c1544aaad8
fix typos [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 11:46:00 +00:00
nobu
c353ec0c9e
string.c: shortcut
...
* string.c (rb_str_concat): shortcut concatenation to ASCII-8BIT
as well as US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 03:58:28 +00:00
nobu
321c6df89b
string.c: fix doc
...
* string.c (rb_str_concat): [DOC] fix the indefinite article, for
replacement from Fixnum to Integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 03:53:34 +00:00
akr
74b314e41f
* test/ruby/test_refinement.rb (test_inspect): Use Integer instead of Fixnum.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 03:35:52 +00:00
nobu
0e3475a6d9
string.c: fix braces
...
* string.c (search_nonascii): fix braces unmatched by a
preprocessing condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-02 00:06:04 +00:00
akr
f1183cb910
complex.c don't refer rb_cFixnum and rb_cBignum.
...
* complex.c: Don't refer rb_cFixnum and rb_cBignum.
(k_fixnum_p): Use FIXNUM_P.
(k_bignum_p): Use RB_TYPE_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 21:59:41 +00:00
naruse
2fc973796a
fix mixed declaration on non UNALIGNED_WORD_ACCESS
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 18:27:41 +00:00
akr
af97057c4d
* test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 16:28:18 +00:00
akr
76be3f22c7
test_name use Integer instead of Fixnum.
...
* test/ruby/test_module.rb (test_name): Use Integer instead of Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 16:15:29 +00:00
akr
5ea4824508
test/lib/test/unit/assertions.rb defines assert_fixnum and assert_bignum.
...
* test/lib/test/unit/assertions.rb (assert_fixnum): Defined.
(assert_bignum): Defined.
* test/ruby/test_bignum.rb: Use assert_bignum.
* test/ruby/test_integer_comb.rb: Use assert_fixnum and assert_bignum.
* test/ruby/test_optimization.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 16:01:36 +00:00
akr
0963d96e52
Add a cast to avoid signed integer overflow.
...
* vm_trace.c (recalc_remove_ruby_vm_event_flags): Add a cast to
avoid signed integer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 15:42:52 +00:00
akr
de2f7416d2
envutil.rb defines Integer::{FIXNUM_MIN,FIXNUM_MAX}.
...
* test/lib/envutil.rb: Define Integer::{FIXNUM_MIN,FIXNUM_MAX}.
* test/ruby/test_bignum.rb: Use Integer::{FIXNUM_MIN,FIXNUM_MAX}.
* test/ruby/test_bignum.rb: Ditto.
* test/ruby/test_integer_comb.rb: Ditto.
* test/ruby/test_marshal.rb: Ditto.
* test/ruby/test_optimization.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 15:16:17 +00:00
svn
f98c9a0aa6
* 2016-05-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 15:02:48 +00:00
mrkn
78729a59a2
Fix rb_ary_sum for mathn
...
* array.c (rb_ary_sum): fix for mathn
* test/ruby/test_array.rb (test_sum): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 15:02:47 +00:00
usa
b1376614de
* test/logger/test_logdevice.rb (TestLogDevice#test_shifting_period_suffix):
...
too many shifting. the last shifting created logs named as `*.3`, and
they were never unlinked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 14:56:45 +00:00
usa
b1ec36b2e6
* test/lib/test/unit.rb (Options#non_options): fixed wrong regexp.
...
if both positives and negatives were specified, postives had to
be spcicifed from the beginning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 14:54:44 +00:00
naruse
64837f778a
fix for where UNALIGNED_WORD_ACCESS is not allowed
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 14:19:02 +00:00
akr
0565551930
update comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 12:50:19 +00:00
akr
9ac296698a
Fix a test message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 12:30:51 +00:00
usa
54916154a0
* win32/win32.c: drop Win2K support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 12:00:35 +00:00
usa
62b6e90d58
* cont.c, hash.c, random.c, win32/win32.c: cleanup some Win9x/ME/NT4
...
support leftovers.
[fix GH-1328] patched by @cremno
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 11:42:41 +00:00
naruse
db2c32778d
Use WORDS_BIGENDIAN
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 09:07:14 +00:00
akr
396d835d09
[DOC] merge documents for {Integer,Fixnum}#succ.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 01:35:43 +00:00
nobu
215a3894d0
ChangeLog: fix a typo [ci skip]
...
* ChangeLog: fix typo, process ID is unrelated to login shell
name, should be user ID.
http://twitter.com/nagachika/status/726553209821523968
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-01 00:56:15 +00:00
naruse
0f0121fe1a
* string.c (search_nonascii): use nlz on big endian environments.
...
* internal.h (nlz_intpr): defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-30 22:32:05 +00:00
akr
aa2395b887
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-30 22:05:43 +00:00
naruse
424a706afe
More optimization for r54854's search_nonascii
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-30 16:32:36 +00:00