aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * st.c (st_foreach_check): chnage start point of search at checktarui2014-04-203-5/+27
| | | | | | | from top to current. [ruby-dev:48047] [Bug #9646] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32ole.c: suppress warningsnobu2014-04-201-24/+25
| | | | | | | * ext/win32ole/win32ole.c: use LONG instead of long to suppress incompatible pointer warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: prefer $LIBPATH than $DEFLIBPATHnobu2014-04-192-4/+10
| | | | | | | | * lib/mkmf.rb (link_command, libpathflag, create_makefile): prefer user specified `$LIBPATH` than `$DEFLIBPATH`. [ruby-core:62100] [ruby-trunk - Bug #9760] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-04-20svn2014-04-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: drop special case for big hash/arraynormal2014-04-192-14/+8
| | | | | | | * gc.c (rb_gc_writebarrier): drop special case for big hash/array [Bug #9518] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: allow parenthesed do-block in cmdargnobu2014-04-193-3/+20
| | | | | | | | * parse.y (primary): flush cmdarg flags inside left-paren in a command argument, to allow parenthesed do-block as an argument without arguments parentheses. [ruby-core:61950] [Bug #9726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (struct RBignum): Use size_t for len.akr2014-04-196-26/+51
| | | | | | | | | | | | | | | | * include/ruby/intern.h (rb_big_new): Use size_t instead of long to specify the size of bignum. (rb_big_resize): Ditto. * bignum.c: Follow above changes. * rational.c: Follow above changes. * marshal.c: Follow above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2014-04-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (rb_num2long): Returns a long.akr2014-04-185-10/+24
| | | | | | | | | | | | | | | | | (rb_num2ulong): Returns a unsigned long. * bignum.c (rb_big2long): Returns a long. (rb_big2ulong): Returns a unsigned long. * include/ruby/intern.h: Follow above changes. * include/ruby/ruby.h: Follow above changes. (rb_num2long_inline): No need to cast. (rb_num2ulong_inline): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: SHARABLE_SUBSTRING_Pnobu2014-04-182-3/+16
| | | | | | | | | * string.c (SHARABLE_SUBSTRING_P): predicate if substring can be shared with the original string. true if just at the end of the original string, for the time being. all substring will be able to be shared in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typonobu2014-04-182-5/+5
| | | | | | * NEWS, README.EXT: fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-04-19svn2014-04-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: fix non-terminated stringnobu2014-04-181-4/+4
| | | | | | | * time.c (month_arg, time_strftime): RSTRING_PTR() may not be NUL-terminated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: shared substring of sourcenobu2014-04-181-11/+11
| | | | | | | * parse.y (lex_get_str): return shared sub-string of entire source string instead of a partial copy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: share middle of a stringnobu2014-04-183-11/+28
| | | | | | | | | * string.c (rb_str_new_frozen): consider the shared string at middle. * string.c (rb_str_subseq, rb_str_substr, str_byte_substr): share middle of a string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.EXT: about string terminationnobu2014-04-182-0/+12
| | | | | | | * README.EXT (Appendix B): add RSTRING_PTR and RSTRING_LEN. and NULL-termination by StringValueCStr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ossl_x509name.c: null-terminate field namenobu2014-04-181-2/+3
| | | | | | | * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): field name of X509_NAME_add_entry_by_txt() must be NULL-terminated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* zlib.c: return unshared stringnobu2014-04-181-2/+1
| | | | | | | * ext/zlib/zlib.c (zstream_shift_buffer): create new copied string since it cannot be shared ever. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: revert r45622nobu2014-04-181-4/+1
| | | | | | | * string.c (str_buf_cat): revert r45622. broken data can be added later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: r45621nobu2014-04-181-1/+1
| | | | | | | * string.c (str_buf_cat): revert r45621. this function does not scan appended data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: don't clear coderange at expandingnobu2014-04-181-1/+4
| | | | | | | * string.c (rb_str_modify_expand): like as str_modify_keep_cr, don't clear coderange unless broken. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: keep code rangenobu2014-04-181-1/+1
| | | | | | * string.c (str_buf_cat): keep code range if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: use uintptr_t instead of VALUE because they are not rubynaruse2014-04-182-23/+28
| | | | | | object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: check str_strlen's argument, and add comment ornaruse2014-04-182-24/+26
| | | | | | use NULL if simply it uses str's enc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_strlen): use enc_strlen if the coderange is known.naruse2014-04-182-6/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (enc_strlen): move UTF-8 optimization from str_strlen tonaruse2014-04-182-61/+66
| | | | | | enc_strlen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-04-18svn2014-04-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: rb_cv_getcwd_mallocnobu2014-04-172-0/+36
| | | | | | | * configure.in (rb_cv_getcwd_malloc): check if getcwd allocates buffer if NULL is given [ruby-core:62072] [Bug #9752] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: drop older cygwinnobu2014-04-171-13/+2
| | | | | | | | | * ruby.c (push_include_cygwin): drop older cygwin support. * ruby.c (ruby_init_loadpath_safe): ditto, and always use String as libpath buffer on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: suppress a warningnobu2014-04-171-1/+1
| | | | | | * gc.c (get_envparam_size): suppress a warning by char-subscripts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prelude.rb: [DOC] Update Thread::exclusive docs by @stevenharman.hsbt2014-04-172-3/+7
| | | | | | [ci skip][fix GH-589] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/opt_sc.inc.tmpl: [DOC] Fix typo in comment by @imasahiro [ci ↵hsbt2014-04-173-3/+3
| | | | | | | | | skip][fix GH-595] * template/optinsn.inc.tmpl: ditto. * template/optunifs.inc.tmpl: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: argument checknobu2014-04-171-6/+11
| | | | | | | * string.c (rb_str_cat_cstr): check the argument as other `_cstr` functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: rb_str_cat_cstrnobu2014-04-175-12/+17
| | | | | | | | * string.c (rb_str_cat): make non-buf version main. * string.c (rb_str_cat_cstr): rename from rb_str_cat2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: FUNC_MINIMIZEDnobu2014-04-172-4/+13
| | | | | | | | | | * configure.in (RUBY_FUNC_ATTRIBUTE): escape double quotes in attribute. * configure.in (FUNC_MINIMIZED): attribute to minimize function body. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: alias of rb_str_buf_cat and rb_str_buf_cat2nobu2014-04-171-11/+2
| | | | | | | * string.c (rb_str_cat, rb_str_cat2): make aliases of rb_str_buf_cat and rb_str_buf_cat2 respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: reduce duplicated codenobu2014-04-171-5/+1
| | | | | | | * string.c (rb_str_cat, rb_str_cat2): reduce duplicated code, they are same as rb_str_buf_cat and rb_str_buf_cat2 respectively now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-04-17svn2014-04-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fileutils.rb: [DOC] update rdocnobu2014-04-172-2/+8
| | | | | | | | * lib/fileutils.rb (FileUtils#copy_entry): update rdoc about preserve option and permissions, following r31123. [ruby-core:62065] [Bug #9748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* enum.c: fix condition to recycle block argumentnobu2014-04-163-1/+17
| | | | | | | | * enum.c (dont_recycle_block_arg): fix condition to recycle block argument. lambda with rest can get internal array directly. [ruby-core:62060] [Bug #9749] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_enum.rb: add testsnobu2014-04-161-0/+12
| | | | | | | * test/ruby/test_enum.rb (test_each_slice, test_each_cons): add missing tests for Enumerable#each_slice and Enumerable#each_cons. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: revert r45600.nobu2014-04-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_fileutils.rb: test :preserve optionnobu2014-04-161-1/+1
| | | | | | | * test/fileutils/test_fileutils.rb (test_cp_preserve_permissions): should test with setting :preserve option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: remove mangled_pathnobu2014-04-162-52/+4
| | | | | | | | | | * ruby.c (rubylib_mangled_path): remove obsolete code, which has been disabled since 5 years ago. * man/ruby.1 (ENVIRONMENT): delete an obsolete variable to mangle path, RUBYLIB_PREFIX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* util.c: let getcwd allocate buffernobu2014-04-161-9/+9
| | | | | | | * util.c (ruby_getcwd): POSIX.1-2001 extends getcwd(3) as it allocates the buffer if the argument is NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: CharNextExA with cpnobu2014-04-161-0/+3
| | | | | | | * win32/win32.c (dln_find_1): use CharNextExA() instead of CharNext() to respect the given code page. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* dln_find.c: PATH_SEPnobu2014-04-161-5/+6
| | | | | | | * dln_find.c (dln_find_exe_r): use PATH_SEP instead of hardcoding separators. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ossl_pkey.c: fix memory leaknobu2014-04-163-2/+42
| | | | | | | | | * ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal() finalizes only a copy of the digest context, the context must be cleaned up after initialization by EVP_MD_CTX_cleanup() or a memory leak will occur. [ruby-core:62038] [Bug #9743] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-04-16svn2014-04-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: adjust typenobu2014-04-151-1/+1
| | | | | | | * win32/win32.c (NtCmdLineElement): use long instead of int for rb_w32_wstr_to_mbstr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e