aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Comment out unused lines.naruse2012-03-061-5/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOKnobu2012-03-061-3/+6
| | | | | | | | | | | bits too. * ext/io/console/console.c (echo_p): ignore ECHOE and ECHOK bits. [ruby-dev:45309] [Bug #6116] * ext/io/console/console.c (console_raw): fix rdoc. * ext/io/console/console.c (console_set_echo): mentioned about platform dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loadedtenderlove2012-03-051-0/+2
| | | | | | in order to stop method pollution. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/lib/syck/rubytypes.rb (Exception.yaml_new): fix bugnobu2012-03-051-1/+2
| | | | | | | | | | that causes YAML serialization problem for Exception. Exception#initialize doesn't use visible instance variable for the exception message, so call the method with the message. patched by Jingwen Owen Ou <jingweno AT gmail.com>. http://github.com/ruby/ruby/pull/41 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: fix typo.nobu2012-03-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/lib/bigdecimal/math.rb: remove description aboutnaruse2012-03-051-1/+0
| | | | | | | | BigMath#log. patched by Sho Hashimoto [ruby-dev:45307] [Bug #6112] * string.c (str_byteslice): fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_strftime.c: reassigned some variables.tadf2012-03-031-35/+34
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_{parse,strptime}.c [ruby-dev:45303].tadf2012-03-032-14/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (mktime_do): use ISDIGIT().nobu2012-03-022-2/+2
| | | | | | | | [ruby-core:43060] [Bug #6108] * ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char. [ruby-core:43060] [Bug #6108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c: reverted r34825.tadf2012-02-281-18/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c: [ruby-core:42998]tadf2012-02-281-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych.rb: default open YAML files with utf8 externaltenderlove2012-02-281-2/+2
| | | | | | | encoding. [ruby-core:42967] * test/psych/test_tainted.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c (fitpair): suppress shortening warnigns.nobu2012-02-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methodsnobu2012-02-271-1/+1
| | | | | | | | can be overridden, so should not make an assumption on the type of results. [ruby-core:42969][Bug #6093] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c, process.c, time.c, ext: use rb_sys_fail_str instead ofnobu2012-02-277-45/+49
| | | | | | | rb_sys_fail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: suppress useless deprecation warningsnobu2012-02-275-0/+15
| | | | | | | from OpenSSL added by Apple. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid rdoc's warnings.naruse2012-02-254-0/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb (headers): try ambiguous headers at last.akr2012-02-251-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ad comment.akr2012-02-251-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.akr2012-02-251-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress warnings.naruse2012-02-252-10/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_tnobu2012-02-256-5/+222
| | | | | | | | and intptr_t. [ruby-core:42460][Feature #5992] * ext/fiddle/fiddle.c (Init_fiddle): ditto. * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): use rb_define_const once forakr2012-02-252-23/+27
| | | | | | | | | | Curses::VERSION. * ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): make Curses::VERSIONakr2012-02-252-3/+3
| | | | | | | | | | understandable without context. * ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c: prevent a memory leak by protecting calls totenderlove2012-02-241-24/+119
| | | | | | | handler callbacks. * test/psych/test_parser.rb: test to demonstrate leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c: set parser encoding based on the YAML inputtenderlove2012-02-231-2/+89
| | | | | | | | | rather than user configuration. * test/psych/test_encoding.rb: corresponding tests. * test/psych/test_parser.rb: ditto * test/psych/test_tainted.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add comment.akr2012-02-231-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: unused macro removed.akr2012-02-231-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.akr2012-02-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: use DBM_SUFFIX only to detect header ofakr2012-02-231-6/+4
| | | | | | | Berkeley DB. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: use defined() to suppress a warning.akr2012-02-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: refactored.akr2012-02-221-19/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: try to distinguish curses_version is aakr2012-02-222-1/+46
| | | | | | | function or variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: show the chosen header and library.akr2012-02-221-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: refactored.akr2012-02-221-20/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: check DBM_SUFFIX for Mac OS X.akr2012-02-212-2/+9
| | | | | | | Its ndbm.h doesn't include db.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_initialize): disable Berkeley DB error messages.akr2012-02-212-0/+11
| | | | | | | | | | * ext/dbm/extconf.rb: check DBC type for above. [ruby-dev:45269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): use curses_version() forakr2012-02-211-1/+1
| | | | | | | Curses::VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.akr2012-02-201-12/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: fold too long lines.akr2012-02-201-2/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): define Curses::VERSION.akr2012-02-201-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: restore $libs and $defs for eachakr2012-02-201-4/+22
| | | | | | | header/library choice. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: weaken header/library consistency check if db isakr2012-02-201-1/+1
| | | | | | | | | | | | "ndbm". It seems several (possibly historical) distributions provide libndbm. However the content of libndbm vary: Berkeley DB, GDBM or even 4.3BSD NDBM. (Mandriva, Tru64 UNIX, OpenSuSE, SCO OpenServer, ...) "ndbm" is not searched automatically now (dblib doesn't contain it) but configure --with-dbm-type=ndbm choose libndbm and ndbm.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: refine variable names.akr2012-02-201-14/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: show header and library found.akr2012-02-191-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (Init_dbm): refine DBM::VERSION definition.akr2012-02-192-11/+22
| | | | | | | | * ext/dbm/extconf.rb: provide RUBYDBM_GDBM_HEADER macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: detect GDBM's ndbm.h by testing dbm_clearerr isakr2012-02-182-3/+29
| | | | | | | | an empty macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: don't choose 'dbm' if _GDB_H_ is defined whichakr2012-02-181-0/+7
| | | | | | | | | is available since GDBM 1.9 because 'gdbm_compat' is appropriate choise since GDBM 1.8.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb (dblib): prefer recent GDBM over older GDBM.akr2012-02-182-32/+68
| | | | | | | | | | | | | | | (have_declared_libvar): new function to check a declared variable exists in a library. (have_undeclared_libvar): renamed from renamed from have_libvar. (headers.db_check2): check that GDBM version variable if GDBM header is choosen. * ext/dbm/dbm.c (Init_dbm): use HAVE_DECLARED_LIBVAR_GDBM_VERSION and HAVE_UNDECLARED_LIBVAR_GDBM_VERSION macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (DBM::VERSION): define it by detecting _GDBM_H_ orakr2012-02-181-0/+4
| | | | | | | | _DBM_IOERR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e