mame
995d330779
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
...
[ruby-core:57599] [Bug #8978 ].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-29 23:27:14 +00:00
nobu
0cee7f8e2f
socket.c: suppress warnings
...
* ext/socket/socket.c (rsock_socketpair0): suppress unused label
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-29 02:04:16 +00:00
tenderlove
e25f3587bd
* ext/openssl/ossl_ssl.c: pass read_nonblock options to underlying IO
...
when SSL session has not been started.
* test/openssl/test_ssl.rb: test for change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-28 19:31:48 +00:00
tenderlove
2ee916752c
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
...
[ruby-core:57599] [Bug #8978 ]. Thanks mame!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-28 18:53:23 +00:00
akr
965b947fff
* ext/socket: Avoid redundant fcntl/fstat syscalls for cloexec
...
sockets.
Patch by Eric Wong. [ruby-core:59429] [Feature #9330 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-28 14:37:34 +00:00
zzak
5d83f5554f
* ext/zlib/zlib.c (rb_zlib_adler32): [DOC] Add example for adler32
...
Patch by Vajrasky Kok [Bug #9307 ] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-28 06:13:50 +00:00
nobu
06d2e8aaf7
thread/thread.c: no dup
...
* ext/thread/thread.c (Init_thread): ConditionVariable and Queue
are not able to copy. [ruby-core:59961] [Bug #9440 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-22 06:59:41 +00:00
akr
3ffc7535ba
Several more OS information for TYPE_IP_MULTICAST_LOOP and
...
TYPE_IP_MULTICAST_TTL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-21 13:39:08 +00:00
nobu
6cfa67afe7
ext/socket/option.c: fix typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-20 22:52:17 +00:00
akr
8b5694d5e8
* ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and
...
IP_MULTICAST_TTL on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-20 19:35:11 +00:00
akr
779a630aee
* ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and
...
IP_MULTICAST_TTL on Mac OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-20 19:32:03 +00:00
akr
3682c6a327
* ext/socket/option.c: Use "byte" as default argument for
...
IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket option to follow
the original multicast implementation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-20 15:43:47 +00:00
akr
3b8bcf42a7
* ext/socket/option.c: Use preprocessor macros to avoid repeated
...
conditionals.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-20 13:48:42 +00:00
nobu
5ecbe189af
socket/option.c: helper functions
...
* ext/socket/option.c (sockopt_pack_byte, sockopt_pack_int):
extract helper functions to pack integers in a String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 14:56:05 +00:00
nobu
5c179cd66c
socket/option.c: revert r44647
...
* ext/socket/option.c (NUM2SOCKOPT, sockopt_value): revert because
these names are confusing. [ruby-dev:47903]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 13:04:53 +00:00
nobu
41bdefd56f
tracepoint.c: disable tracepoint
...
* ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events):
ensure tracepoint disabled. [ruby-dev:47901] [Bug #9426 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 08:56:58 +00:00
hsbt
0558b8a5c4
* ext/psych/lib/psych.rb: fix typo by @jwworth [fix GH-500]
...
* lib/rake/file_list.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 05:48:33 +00:00
hsbt
d1ab866d4a
* ext/nkf/nkf-utf8/nkf.c: fix typo by @windwiny [fix GH-506]
...
* ext/openssl/ossl_ssl.c: ditto
* ext/psych/yaml/scanner.c: ditto
* ext/socket/init.c: ditto
* ext/socket/socket.c: ditto
* ext/tk/tcltklib.c: ditto
* ext/win32ole/win32ole.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 05:43:23 +00:00
nobu
6282b3b5c3
socket/option.c: socket option variations
...
* ext/socket/option.c (NUM2SOCKOPT, sockopt_value): extract to wrap
socket option variations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-19 01:11:01 +00:00
akr
971ef82267
* ext/socket: Avoid unnecessary ppoll/select on Linux.
...
Patch by Eric Wong. [ruby-core:57950] [Bug #9039 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-18 14:13:22 +00:00
akr
7efaa4f5d0
[DOC]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-18 12:44:36 +00:00
akr
57b2190d55
* ext/socket/option.c: IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket
...
option takes a byte on OpenBSD.
Fixed by Jeremy Evans. [ruby-core:59496] [Bug #9350 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-18 12:31:57 +00:00
mrkn
986a99b239
* ext/bigdecimal/bigdecimal.gemspec: bigdecimal version 1.2.5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-15 15:17:33 +00:00
nobu
cfa2a21062
ext/json: backward compatibilities
...
* ext/json/fbuffer/fbuffer.h, ext/json/generator/generator.c: add
macros for backward compatibilities.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-15 08:16:46 +00:00
nobu
a1a237fb36
ext/fiddle: backward compatibilities
...
* ext/fiddle/function.c, ext/fiddle/pointer.c: add macros for
backward compatibilities.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-15 08:16:44 +00:00
nobu
f5a12ac596
bigdecimal.c: rename macros
...
* ext/bigdecimal/bigdecimal.c (RB_OBJ_CLASSNAME): rename from CLASS_NAME().
* ext/bigdecimal/bigdecimal.c (RB_OBJ_STRING): for object itself.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-15 08:16:33 +00:00
nobu
405ad52ad7
function.c: adjust indent
...
* ext/fiddle/function.c (parse_keyword_arg_i): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-15 08:16:32 +00:00
glass
79e69ec715
* ext/thread/thread.c (rb_szqueue_clear): notify SZQUEUE_WAITERS
...
on SizedQueue#clear. [ruby-core:59462] [Bug #9342 ]
* test/thread/test_queue.rb: add test. the patch is from
Justin Collins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-14 12:14:48 +00:00
nobu
0a8988c132
bigdecimal.c: backword compatibility as gem
...
* ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap
depending on PRIsVALUE for 1.9. [Backport #9406 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-14 06:58:43 +00:00
nobu
88383b058b
bigdecimal.c: backword compatibility as gem
...
* ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback
definition for 2.1 or older. [ruby-core:59750] [Backport #9406 ]
* ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition
for 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-14 05:51:58 +00:00
nobu
43d4148682
strscan.c: fix typo
...
* ext/strscan/strscan.c (inspect1): fix typo, rb_str_cat() instead
of rb_str_cat2().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-14 03:23:20 +00:00
nobu
747e3c73e0
strscan.c: make string directly
...
* ext/strscan/strscan.c (inspect1): extract intermediate string from
the buffer directly, like as inspect2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-14 02:48:07 +00:00
mrkn
e7fe5648cf
* ext/bigdecimal/bigdecimal.c (BigDecimal_divide): Add an additional
...
digit for the quotient to be compatible with bigdecimal 1.2.1 and
the former. [ruby-core:59365] [#9316 ] [#9305 ]
* test/bigdecimal/test_bigdecimal.rb: tests for the above change.
* ext/bigdecimal/bigdecimal.gemspec: bigdecimal version 1.2.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 17:29:58 +00:00
zzak
3f039c96e2
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szücs [Bug #9243 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 05:27:23 +00:00
charliesome
64926db998
* ext/thread/thread.c (rb_szqueue_push): check GET_SZQUEUE_WAITERS
...
instead of GET_QUEUE_WAITERS to prevent deadlock. Patch by Eric Wong.
[Bug #9302 ] [ruby-core:59324]
* test/thread/test_queue.rb: add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 03:18:38 +00:00
nobu
23a8568739
openssl/ossl.h: calculate as long
...
* ext/openssl/ossl.h (ossl_str_adjust): calculate as long, not
casting to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 00:57:42 +00:00
nobu
74947c9d1e
ext: use rb_sprintf() and rb_vsprintf() with PRIsVALUE
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 00:57:41 +00:00
nobu
eadaa8ba8b
ext: use PRIsVALUE for rb_raise and rb_warn
...
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): use PRIsVALUE for
rb_raise() and rb_warn().
* ext/openssl/ossl_cipher.c (ossl_cipher_init): ditto.
* ext/racc/cparse/cparse.c (extract_user_token): ditto.
* ext/syslog/syslog.c (mSyslog_log): ditto.
* ext/openssl/ossl.h (OSSL_Check_Kind, OSSL_Check_Instance): now
ossl_raise() also accepts PRIsVALUE.
* ext/openssl/ossl_asn1.c (ossl_asn1_default_tag):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 00:57:38 +00:00
nobu
7e9bd8f72c
ext: real class name
...
* ext/dl/cptr.c (rb_dlptr_inspect): use real class name, not
singleton class.
* ext/fiddle/pointer.c (rb_fiddle_ptr_inspect): ditto.
* ext/strscan/strscan.c (strscan_inspect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 00:57:36 +00:00
nobu
56e96b9f73
cptr.c: unused variable
...
* ext/dl/cptr.c (rb_dlptr_inspect): remove no longer used variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-13 00:57:34 +00:00
nagai
738c298ce0
* ext/tk/extconf.rb: --with-tcllib and --with-tklib configure options
...
don't work correctly. Patch by jeremyevans0 (Jeremy Evans).
[ruby-core:59483] [Bug #9348 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-12 09:04:06 +00:00
nobu
9bd672f668
ext: use rb_sprintf() and rb_vsprintf() with PRIsVALUE
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-12 08:11:36 +00:00
nobu
4240685237
stubs.c: library name strings
...
* ext/tk/stubs.c (ruby_open_tcl_dll, ruby_open_tk_dll): make library
names by string literal concatenation at compilation time, not by
sprintf() at runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-12 08:11:34 +00:00
nobu
13e47e81d9
tcltklib.c: create_ip_exc format argument
...
* ext/tk/tcltklib.c (create_ip_exc): format argument must not be a
dynamic string, not to contain unescaped %.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-12 08:11:32 +00:00
nobu
5e9b7bacc3
ruby/util.h: DECIMAL_SIZE_OF_BITS
...
* include/ruby/util.h (DECIMAL_SIZE_OF_BITS): a preprocessor
constant macro to approximate decimal representation size of n-bits
integer.
* iseq.c (register_label): use DECIMAL_SIZE_OF_BITS for better
approximation.
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto.
* common.mk (iseq.o), ext/bigdecimal/depend (bigdecimal.o): add
dependency to ruby/util.h for DECIMAL_SIZE_OF_BITS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-12 00:21:37 +00:00
nobu
2b1c47dadc
bigdecimal.c: expand buffer
...
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): expand buffer size for
64bit platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-11 03:15:01 +00:00
nobu
f06ee90f95
tk/extconf.rb: fix libpathflag arguments
...
* ext/tk/extconf.rb: fix to pass arrays instead of strings to
libpathflag. patch at [ruby-core:59665]. [Bug #9386 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-09 15:47:54 +00:00
tenderlove
b90076e85c
* ext/psych/lib/psych/visitors/yaml_tree.rb: dumping strings with
...
quotes should not have changed. [ruby-core:59316] [Bug #9300 ]
* ext/psych/lib/psych.rb: fixed missing require.
* test/psych/test_string.rb: test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-09 00:56:45 +00:00
tenderlove
7c6e4f8f38
* ext/psych/lib/psych/visitors/to_ruby.rb: anonymous structs
...
should be able to roundtrip. Thanks @splattael!
* test/psych/test_object_references.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-09 00:54:37 +00:00
tmm1
738b8872ef
ext/json: objects depend on $(ruby_headers)
...
* ext/json/generator/depend: add build dependencies for json extension
Patch by normalperson (Eric Wong) [Bug #9374 ] [ruby-core:59609]
* ext/json/parser/depend: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-07 01:13:46 +00:00