akr
fd8f2338e9
* bignum.c (rb_cstr_to_inum): Avoid temporary buffer allocation except
...
very big base non-power-of-2 numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 09:38:11 +00:00
nobu
0eed101a54
test/mkmf: $extmk in parallel test
...
* test/mkmf/base.rb, test/mkmf/test_config.rb: needs to set $extmk
since worker processes in parallel test mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 07:03:07 +00:00
nobu
a536143507
test_have_library.rb: toolchains result
...
* test/mkmf/test_have_library.rb (create_library): check if toolchains
work.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 07:03:05 +00:00
nobu
246c66f702
mkmf.rb: CONFTEST
...
* lib/mkmf.rb (CONFTEST): constify hardcoded filename.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 07:03:01 +00:00
naruse
05bc47773a
* string.c (rb_str_succ): use ONIGENC_MBCLEN_CHARFOUND_P correctly.
...
* string.c (rb_str_dump): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 06:52:33 +00:00
nobu
c294ed5824
test_regexp.rb: test for conditional expression
...
* test/ruby/test_regexp.rb (TestRegexp#test_conditional_expression):
test for [Bug #8583 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 04:32:32 +00:00
hsbt
fa7e514642
Fixing example in comments that raised an error by @JackDanger [fix GH-345]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 02:53:16 +00:00
naruse
60c90330c8
Additional description for r41764
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 01:39:25 +00:00
naruse
d39f196401
* regcomp.c (): Merge Onigmo 5.13.5 23b523076d6f1161.
...
https://bugs.ruby-lang.org/issues/8583
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 01:16:22 +00:00
kazu
f23fe3192c
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-04 01:11:23 +00:00
nobu
d1e0cc2750
internal.h: supperss warning
...
* internal.h (SIGNED_INTEGER_MAX): supperss warning C4146 on VC6.
seems a logical ORed expression becomes unsigned.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 15:36:10 +00:00
svn
c352ba8bb0
* 2013-07-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 15:13:11 +00:00
nobu
15d4450907
ruby_atomic.h: ATOMIC_CAS on VC6
...
* ruby_atomic.h (rb_w32_atomic_cas): call InterlockedCompareExchange
directly.
* ruby_atomic.h (ATOMIC_CAS): fix missing function call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 15:13:06 +00:00
nobu
b12ffcb15d
ruby_atomic.h: suppress warnigns
...
* ruby_atomic.h (ATOMIC_CAS): suppress C4022 and C4047 warnings in
VC6. only InterlockedCompareExchange is declared using PVOID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 14:47:42 +00:00
akr
b2be623240
* internal.h (ruby_digit36_to_number_table): Declared.
...
* util.c (ruby_digit36_to_number_table): Moved from scan_digits.
* bignum.c (conv_digit): Use ruby_digit36_to_number_table.
* pack.c (hex2num): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 13:32:14 +00:00
nobu
48ebea719f
mkmf.rb: revert DESTDIR prefix
...
* lib/mkmf.rb (install_dirs): revert DESTDIR prefix by r39841, since
it is fixed by r41648. [ruby-core:55760] [Bug #8115 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 09:12:59 +00:00
nobu
48b19a3a75
dir.c: get rid of FindFirstFile bug
...
* dir.c (do_stat): use rb_w32_ustati64() in win32.c to get rid of
mysterious behavior of FindFirstFile() Windows API which treat "<"
and ">" like as wildcard characters. [ruby-core:55764] [Bug #8597 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 05:15:28 +00:00
nobu
89e38a2b7c
dir.c: do_lstat alias
...
* dir.c (do_lstat): make an alias of do_stat instead of two same
functions, when no lstat is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 05:12:03 +00:00
nobu
8cbd501ed0
test/ruby: independent from pathname
...
* test/ruby/test_dir.rb (TestDir#setup): remove dependency on pathname.
* test/ruby/test_rubyoptions.rb (TestRubyOptions#with_tmpchdir): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 05:11:58 +00:00
svn
87e185da06
* 2013-07-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 03:08:56 +00:00
akr
c4107e71c5
* bignum.c (maxpow_in_bdigit): Renamed from calc_hbase and return
...
maxpow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-03 03:08:52 +00:00
akr
c78826190f
* bignum.c (roomof): Cast to long.
...
(rb_ull2big): Fix bignew arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 14:49:06 +00:00
charliesome
d74bb62dcc
* bignum.c (rb_cstr_to_inum): fix 64 bit to 32 bit shorten warning
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 13:16:35 +00:00
akr
4658478ae1
* bignum.c (rb_cstr_to_inum): Merge two temporary buffers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 12:20:00 +00:00
akr
2ade221827
* bignum.c (rb_cstr_to_inum): Use BDIGIT_DBL to collect adjacent digits.
...
(BDIGIT_DBL_MAX): New macro.
(maxpow_in_bdigit_dbl): New function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 11:52:13 +00:00
shugo
9487404c62
* doc/syntax/refinements.rdoc: add description of Module#using and
...
refinement inheritance by module inclusion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:24:26 +00:00
nobu
58919a4da9
re.c: use built-in encoding indexes
...
* internal.h: add EUC-JP and Windows-31J.
* re.c (rb_char_to_option_kcode): use built-in encoding indexes in
internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:47 +00:00
nobu
14dfdb5eaf
dir.c: use built-in encoding indexes
...
* internal.h: add UTF8-MAC.
* dir.c (rb_utf8mac_encoding): use built-in encoding indexes in
internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:43 +00:00
nobu
66564ab6b2
string.c: use built-in encoding indexes
...
* internal.h: add UTF-{16,32} dummy encodings.
* string.c (rb_str_inspect, str_scrub0): use built-in encoding indexes
in internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:38 +00:00
nobu
42a2f89b39
io.c: use built-in encoding indexes
...
* internal.h: add UTF-{16,32}{BE,LE}.
* io.c (io_strip_bom): use built-in encoding indexes in internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:34 +00:00
nobu
ea2b115efd
internal.h: use built-in encoding indexes
...
* internal.h (rb_{ascii8bit,utf8,usascii}_encindex): use built-in
encoding indexes for optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:30 +00:00
nobu
869a1b5876
encoding.c: use built-in encoding indexes
...
* encoding.c (enc_inspect, rb_locale_encindex),
(enc_set_filesystem_encoding, rb_filesystem_encindex): use built-in
encoding indexes directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:23 +00:00
nobu
aa1acf1d42
encoding.c: validate index
...
* encoding.c (rb_enc_set_index, rb_enc_associate_index): validate
argument encoding index.
* include/ruby/encoding.h (ENCODING_SET): use rb_enc_set_index()
instead of setting inlined bits directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:19 +00:00
nobu
263ce88f9f
encoding.c: preserved encindex
...
* encoding.c (rb_enc_init): register preserved indexes.
* internal.h (ruby_preserved_encindex): move from encoding.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 08:22:15 +00:00
kazu
22d508fc27
fix indent
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 03:00:05 +00:00
kazu
ee8fdc473a
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 03:00:02 +00:00
kazu
c92c5c9e3c
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 02:59:59 +00:00
sorah
47434dc12f
* lib/mkmf.rb (try_config): Fix to not replace $LDFLAGS with $libs
...
(1.9.3 behavior) [ruby-core:55752] [Bug #8595 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-02 02:35:36 +00:00
svn
3b25c2066a
* 2013-07-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 15:43:27 +00:00
akr
8c55a0a6e4
* ext/socket/ipsocket.c (init_inetsock_internal): Don't try mismached
...
address family if already failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 15:43:21 +00:00
nobu
2fef15145c
util.c: constify
...
* util.c (scan_digits): constify readonly table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 14:44:31 +00:00
naruse
ba3dc473c4
Revert r41728
...
* string.c (rb_str_inspect): use encoding index macros in encdb.h.
It breaks build because encdb.h requires miniruby and modified
miniruby requires encdb.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 14:30:04 +00:00
naruse
642b157cc4
* string.c (rb_str_inspect): use encoding index macros in encdb.h.
...
* string.c (str_scrub0): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 14:12:13 +00:00
naruse
5308b0fd5e
* template/encdb.h.tmpl: define encoding index macros to use the index
...
statically from C source.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 14:12:10 +00:00
akr
df1192edf5
* bignum.c (bary_mul2): New function.
...
(rb_cstr_to_inum): Use a better algorithm to compose the result
if input length is very long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 13:59:50 +00:00
mrkn
d08a79cfe1
* ext/bigdecimal/bigdecimal.h (RB_UNUSED_VAR, UNREACHABLE):
...
import macros from ruby.h for 1.9.3.
[Bug #8588 ] [ruby-core:55730]
* ext/bigdecimal/bigdecimal.gemspec: Bump version to 1.2.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 11:46:15 +00:00
akr
b7fd00c8fa
* ext/socket/ipsocket.c (init_inetsock_internal): Use an address
...
family for local address wihch is different to the remote
address if no other choice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 11:05:47 +00:00
mrkn
f6a8c82e2d
Additionally mention Heesob Park for his patch to [Bug #6862 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 06:37:20 +00:00
nobu
45c2532e59
csv.rb: get rid of discarding coderange
...
* lib/csv.rb (CSV#<<): use StringIO#set_encoding instead of creating
new StringIO instance with String#force_encoding, forcing encoding
discards the cached coderange bits and can make further operations
very slow. [ruby-core:55714] [Bug #8585 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 06:05:03 +00:00
nobu
8776802385
stringio.c: keep coderange
...
* ext/stringio/stringio.c (strio_write): keep coderange of
ptr->string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 06:04:23 +00:00