aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * ext/socket: Wrap struct addrinfo by struct rb_addrinfo.akr2014-02-196-76/+104
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ipsocket.c (ip_s_getaddress): Don't access freed memory.akr2014-02-192-2/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-19svn2014-02-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: it must see rb_cv_broken_memmem not rb_cv_func_memmem.naruse2014-02-192-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_socket.rb: unix socket is required by test case.hsbt2014-02-182-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_addrinfo.rb: remove unused variables.hsbt2014-02-189-31/+31
| | | | | | | | | | | | * test/socket/test_nonblock.rb: ditto. * test/socket/test_socket.rb: ditto. * test/socket/test_unix.rb: ditto. * test/testunit/test_parallel.rb: ditto. * test/webrick/test_filehandler.rb: ditto. * test/xmlrpc/test_features.rb: ditto. * test/zlib/test_zlib.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: Requires minitest < 5.0.0 if Gem is available.sorah2014-02-182-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/test-unit.gemspec: Add minitest < 5.0.0 dependencysorah2014-02-183-0/+21
| | | | | | | | * tool/rbinstall.rb: Add empty implementations for `add_dependency`, `add_runtime_dependency`, `add_development_dependency` for Gem::Specification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (FILE_COUNT): Removed. (win32.c defines it in itself.)akr2014-02-182-40/+5
| | | | | | | | (FILE_READPTR): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-18svn2014-02-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test/psych/test_string.rb: remove unused variables.hsbt2014-02-183-3/+7
| | | | | | * test/test/psych/test_yaml.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_gc.rb: ignore warning messages for running with -wko12014-02-172-1/+6
| | | | | | | | option such as chkbuild. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: Move BDIGIT and related definitions fromakr2014-02-173-54/+59
| | | | | | | | include/ruby/defines.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* marshal.c: do not recycle wrapper objectsnobu2014-02-173-4/+29
| | | | | | | | * marshal.c (marshal_dump, marshal_load): do not recycle wrapper objects, to prevent from segfault with continuation. [ruby-dev:47970] [Bug #9523] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2014-02-170-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/keywords.rdoc: [DOC] Add keywords doc by documenting-ruby/ruby#29zzak2014-02-172-0/+12
| | | | | | | https://github.com/documenting-ruby/ruby/pull/29 [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (get_envparam_double): fix a warning message.ko12014-02-172-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: introduce new environment variableko12014-02-173-4/+38
| | | | | | | | | | | | | "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR" to control major/minor GC frequency. Do full GC when the number of old objects is more than R * N where R is this factor and N is the number of old objects just after last full GC. * test/ruby/test_gc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_pty.rb: use underscore variables. because ignored unseued variables.hsbt2014-02-172-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_find.rb: remove unused variables.hsbt2014-02-172-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2014-02-170-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-17svn2014-02-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_initialize): Insert GC guard.mrkn2014-02-162-2/+13
| | | | | | * ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2014-02-161-0/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/psych/yaml: suppress warningsnobu2014-02-164-13/+8
| | | | | | | | | | | | * ext/psych/yaml/emitter.c (WRITE_BREAK, PUT_BREAK): suppress unused-value warnings. * ext/psych/yaml/parser.c, ext/psych/yaml/scanner.c: suppress unused-but-set-variable warnings. * ext/psych/yaml/yaml_private.h (STACK_EMPTY): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bigdecimal.c: refine macrosnobu2014-02-161-3/+3
| | | | | | | | | | * ext/bigdecimal/bigdecimal.c (PUSH, SAVE): remove extra semicolons. * ext/bigdecimal/bigdecimal.c (GUARD_OBJ): add parentheses and make an expression instead of a statement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.h: use FIX2LONGnobu2014-02-161-3/+3
| | | | | | | | | | * include/ruby/ruby.h (RBIGNUM_SIGN): use FIX2LONG() instead of FIX2INT() for optimization, since rb_big_cmp() returns only Fixnum -1..+1 for Finxum 0. (RBIGNUM_POSITIVE_P, RBIGNUM_NEGATIVE_P): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_securerandom.rb: use File.exist? instead of File.exists?hsbt2014-02-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/pathname/test_pathname.rb: use File.exist? instead of File.exists?hsbt2014-02-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/ftp/test_ftp.rb: remove unused variables.hsbt2014-02-163-19/+7
| | | | | | test/logger/test_logger.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* dir.c (dir_s_glob): RB_GC_GUARD instead of volatilenormal2014-02-162-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RBIGNUM_SIGN): Defined for compatibility.akr2014-02-162-0/+10
| | | | | | | | | (RBIGNUM_POSITIVE_P): Ditto. (RBIGNUM_NEGATIVE_P): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c (rb_f_backquote): trade volatile for manual recyclenormal2014-02-162-1/+8
| | | | | | | * io.c (rb_f_backquote): trade volatile for manual recycle rb_gc_force_recycle ensures object is visible until recycle git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* marshal.c: use rb_gc_force_recycle for GC-safetynormal2014-02-162-8/+14
| | | | | | | | | Putting rb_gc_force_recycle at the end of the function has a nice side-effect of keeping wrapper visible to GC until the moment of recycle, preventing GC from prematurely killing live objects. volatile is a common source of compiler bugs/differences, avoid it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README.EXT.ja: [DOC] Fix typo by @utenmiki [Fixes GH-534] [ci skip]zzak2014-02-152-1/+6
| | | | | | | https://github.com/ruby/ruby/pull/534 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BIGNUM_ZERO_P): Unused macro removed.akr2014-02-152-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-16svn2014-02-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: Rename macro names: RBIGNUM_FOO to BIGNUM_FOO.akr2014-02-1513-218/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (BIGNUM_EMBED_LEN_NUMBITS): Renamed from RBIGNUM_EMBED_LEN_NUMBITS. (BIGNUM_EMBED_LEN_MAX): Renamed from RBIGNUM_EMBED_LEN_MAX. (BIGNUM_SIGN_BIT): Renamed from RBIGNUM_SIGN_BIT. (BIGNUM_SIGN): Renamed from RBIGNUM_SIGN. (BIGNUM_SET_SIGN): Renamed from RBIGNUM_SET_SIGN. (BIGNUM_POSITIVE_P): Renamed from RBIGNUM_POSITIVE_P. (BIGNUM_NEGATIVE_P): Renamed from RBIGNUM_NEGATIVE_P. (BIGNUM_EMBED_FLAG): Renamed from RBIGNUM_EMBED_FLAG. (BIGNUM_EMBED_LEN_MASK): Renamed from RBIGNUM_EMBED_LEN_MASK. (BIGNUM_EMBED_LEN_SHIFT): Renamed from RBIGNUM_EMBED_LEN_SHIFT. (BIGNUM_LEN): Renamed from RBIGNUM_LEN. (RBIGNUM_DIGITS): Renamed from RBIGNUM_DIGITS. (BIGNUM_LENINT): Renamed from RBIGNUM_LENINT. * bignum.c: Follow the above change. * gc.c: Ditto. * marshal.c: Ditto. * math.c: Ditto. * numeric.c: Ditto. * random.c: Ditto. * rational.c: Ditto. * sprintf.c: Ditto. * ext/-test-/bignum/bigzero.c: Ditto. * ext/-test-/bignum/intpack.c: Ditto. * ext/bigdecimal/bigdecimal.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (FILE_READEND): Don't detect it because it is not used.akr2014-02-152-18/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* probes_helper.h (RUBY_DTRACE_HOOK): correct type for _idnormal2014-02-152-1/+5
| | | | | | | * probes_helper.h (RUBY_DTRACE_HOOK): correct type for _id I want to experiment with uint32_t ID git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_cmp): Avoid bignum allocation for comparisonakr2014-02-152-7/+16
| | | | | | | | between bignum and fixnum. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add note about "struct RBignum is hidden.".akr2014-02-151-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Describe "Deprecated APIs removed." and "struct RBignum is hidden."akr2014-02-151-0/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fd_setsize/depend: fix wrong dependenciesshirosaki2014-02-152-2/+6
| | | | | | | * ext/-test-/win32/fd_setsize/depend: fix wrong dependencies. [ruby-dev:47253] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* minor rdoc typoryan2014-02-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Range#bsearch: fix typo in rdocmarcandre2014-02-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* load.c: call initnobu2014-02-141-0/+1
| | | | | | * load.c (register_init_ext): call initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c: Enumerable#{min,min_by,max,max_by} extended to take anakr2014-02-146-29/+319
| | | | | | | | | | | | | | | | | | | | | | | optional argument. (nmin_cmp): New function. (nmin_block_cmp): Ditto (nmin_filter): Ditto. (nmin_i): Ditto. (nmin_run): Ditto. (enum_min): Call nmin_run if the optional argument is given. (nmin_max): Ditto. (nmin_min_by): Ditto. (nmin_max_by): Ditto. * range.c: Range#{min,max} extended to take an optional argument. (range_min): Call range_first if the optional argument is given. (range_max): Call rb_call_super if the optional argument is given. [ruby-core:57111] [Feature #8887] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h,akr2014-02-144-43/+53
| | | | | | | | | internal.h, ext/-test-/bignum/bigzero.c: Hide a Bignum definition. [ruby-core:42891] [Feature #6083] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-02-15svn2014-02-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e