aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * marshal.c (r_bytes0): commit miss.nobu2007-10-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_bytes0): check if source has enough data.nobu2007-10-154-4/+29
| | | | | | | [ruby-dev:32054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_accept_nonblock): make accepted fdakr2007-10-142-0/+24
| | | | | | | nonblocking. [ruby-talk:274079] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:32054].akr2007-10-141-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_obj_encoding): rdoc update. a patch from Davidnobu2007-10-143-4/+65
| | | | | | | | | | | | | | | | Flanagan <david AT davidflanagan.com>. [ruby-core:12664] * encoding.c (enc_dump, enc_load): marshaling feature. a patch from David Flanagan. [ruby-core:12665] * encoding.c (Init_Encoding): undefine allocator of Encoding. [ruby-core:12665], [ruby-core:12666] * test/ruby/test_encoding.rb: tests for Encoding from David Flanagan [ruby-core:12665] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP::PPMethods#pp_hash): don't sort keys because hash isakr2007-10-142-12/+14
| | | | | | | | ordered. (ENV.pretty_print): call pp_hash with sorted hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (AC_SYS_LARGEFILE): keep results also in commandnobu2007-10-134-2/+16
| | | | | | | | | options, to vail out of mismatch. [ruby-list:44114] * mkconfig.rb, lib/mkmf.rb (configuration): add DEFS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb: deal with __fastcall name decorations.nobu2007-10-133-4/+9
| | | | | | | [ruby-list:44111] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * inits.c (rb_call_inits): call Init_Encoding.nobu2007-10-132-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_cEncoding): new Encoding class.nobu2007-10-136-20/+179
| | | | | | | | | | | | | | | | | * encoding.c (rb_to_encoding, rb_to_encoding_index): helper functions. * encoding.c (rb_obj_encoding): return Encoding object now. * gc.c (garbage_collect): mark Encoding objects. * string.c (rb_str_force_encoding): accept Encoding object as well as encoding name. * include/ruby/encoding.h (rb_to_encoding_index, rb_to_encoding): prototypes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): fix :ssl_ca_cert option.akr2007-10-132-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (foletype_s_ole_classes, suke2007-10-135-75/+53
| | | | | | | | | | | | | | | | | | | foletype_s_typelibs): refactoring. * test/win32ole/test_win32ole_type.rb: add some test. * ext/win32ole/win32ole.c (Init_win32ole): change method name WIN32OLE_TYPELIB.ole_types from WIN32OLE_TYPELIB.ole_classes. * test/win32ole/test_win32ole_typelib.rb: ditto. * test/win32ole/test_folderitem2_invokeverb.rb: check create shortcut string more strictly (This test is invoked in Japanese Windows environment). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (set_file_encoding): case-insensitive search, a patch fromnobu2007-10-132-6/+11
| | | | | | | David Flanagan <david AT davidflanagan.com> [ruby-core:12629] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108]nobu2007-10-133-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document::write): leakymatz2007-10-122-1/+6
| | | | | | modification trans -> transitive. [ruby-dev:32040] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: encoding specifier should work if the line matchesmatz2007-10-123-10/+10
| | | | | | | /coding[:=] ?/, a la Python PEP-263, so that VIM comments like "# vim: set fileencoding=<encoding name>" should be recognized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (match_values_at): make #select to be alias to #values_atmatz2007-10-122-41/+9
| | | | | | to adapt RDoc description. [ruby-core:12588] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_combination): fixed memory corruption due to toomatz2007-10-122-2/+10
| | | | | | | | | small memory allocation * array.c (rb_ary_product): accessing out of memory bounds. condition fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * trunk/parse.y (magic_comments): add "encoding" as same as "coding".nobu2007-10-123-21/+82
| | | | | | | | | * trunk/parse.y (set_file_encoding): special file encoding handling. * trunk/parse.y (parser_yylex): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/node.h (NOEX_LOCAL): remove unused local visibility.matz2007-10-115-25/+9
| | | | | | | | * class.c (ins_methods_push): ditto. * class.c (rb_class_local_methods): method removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/Makefile.sub, too.usa2007-10-112-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (COMMON_MACROS): workaround for old SDK's bug.usa2007-10-112-1/+6
| | | | | | | | [ruby-core:12584] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, */Makefile.sub (VPATH): add enc directory.nobu2007-10-1011-21/+39
| | | | | | | | | * common.mk (ENCOBJS): encoding objects. * enc: directory for encodings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/oniguruma.h (OnigEncodingTypeST): add OnigEncodingmatz2007-10-1010-88/+109
| | | | | | | | | parameter to every function members. * include/ruby/oniguruma.h (OnigEncodingTypeST): add auxiliary data member to provide user defined data for an encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_s_quote): no longer takes optional second argumentmatz2007-10-102-19/+11
| | | | | | that has never been documented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_init): don't alias iso-8859-1 to ascii.akr2007-10-103-5/+11
| | | | | | | | * ascii.c (OnigEncodingASCII): change the name US-ASCII to ASCII-8BIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_str_coderange): fixed checkfor non-ascii.nobu2007-10-103-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_permutation): use frozen shared hidden array.nobu2007-10-092-5/+7
| | | | | | | [ruby-dev:31985] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_permutation, rb_ary_combination): missing typenobu2007-10-092-19/+26
| | | | | | | | | names. * array.c (rb_ary_permutation): used buffer should be t1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: remove to_a completely.matz2007-10-092-19/+23
| | | | | | * array.c (tmpbuf): keep DRY to clear klass of temporary objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:31985].akr2007-10-091-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_permutation, rb_ary_combination, rb_ary_product):nobu2007-10-092-1/+16
| | | | | | | hide internal buffer objects. [ruby-dev:31982] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_read_escape, parser_tokadd_escape): check code range.usa2007-10-092-29/+33
| | | | | | | [ruby-dev:31980] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:31982].akr2007-10-091-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (STR_NEW3): check for if single byte sequence.nobu2007-10-093-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix rdoc position of Regexp.union.akr2007-10-081-17/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb, lib/net/smtp.rb, lib/net/pop.rb: hostname shouldgotoyuzo2007-10-086-25/+50
| | | | | | | | | | be verified against server's indentity as persented in the server's certificate. [ruby-dev:31960] * ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,kou2007-10-075-11/+50
| | | | | | | | test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured declaring XML namespaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid magic numbers.akr2007-10-071-31/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/node.h: make node flags as VALUE type.akr2007-10-074-18/+22
| | | | | | | | | enum ruby_node_flags removed. * ruby.c: define RUBY_NODE_* as const for gdb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2007-10-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refined again.akr2007-10-071-27/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2007-10-071-5/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: enum ruby_value_flags removed.akr2007-10-073-65/+69
| | | | | | | * ruby.c: define RUBY_FL_* as const VALUE for gdb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: remove enable_post_connection_check flag.gotoyuzo2007-10-073-14/+7
| | | | | | | * lib/open-uri.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_eq): fix to use rb_str_equal().ko12007-10-073-18/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_to_i): update RDoc since base can be any valuematz2007-10-062-1/+6
| | | | | | between 2 and 36. [ruby-talk:272879] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_free): check Fiber or Continuation.ko12007-10-063-6/+8
| | | | | | | | * bootstraptest/test_knownbug.rb: remove a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_register): returns new index or -1 if failed.nobu2007-10-063-11/+47
| | | | | | | | | | | | * encoding.c (rb_enc_alias): check if original name is registered. * encoding.c (rb_enc_init): register in same order as kcode options in re.c. added new aliases. * string.c (rb_str_force_encoding): check if valid encoding name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an example for Regexp.union document.akr2007-10-061-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e