summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/socket/mkconstants.rb: add some IPV6 constans. [ruby-dev:36175]matz2008-09-062-2/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/constants.h: add some IPV6 constans. [ruby-dev:36175]matz2008-09-061-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (econv_description): show ECONV_HTML_TEXT_ENCODER andakr2008-09-062-2/+17
| | | | | | | ECONV_HTML_ATTR_ENCODER. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_binmode): check actual transcoders.akr2008-09-062-17/+44
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_open): fix last_tc.akr2008-09-062-4/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_binmode): clear newline flags in writeconv_pre_ecflags.akr2008-09-062-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER andakr2008-09-063-1/+11
| | | | | | | ECONV_HTML_ATTR_ENCODER. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (allocate_converted_string): fix overflow condition.akr2008-09-062-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eol-stylenobu2008-09-060-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (sym_html): new variable.akr2008-09-063-0/+33
| | | | | | | | | | (sym_text): ditto. (sym_attr): ditto. (econv_opts): check :html=>:text and :html=>:attr. (Init_transcode): initialize the above variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (ECONV_HTML_TEXT_ENCODER): new constant.akr2008-09-064-0/+38
| | | | | | | | | | | | | (ECONV_HTML_ATTR_ENCODER): ditto. * transcode.c (rb_econv_open): check ECONV_HTML_TEXT_ENCODER and ECONV_HTML_ATTR_ENCODER. (Init_transcode): Encoding::Converter::HTML_TEXT_ENCODER and Encoding::Converter::HTML_ATTR_ENCODER defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (struct trans_open_t): defined to pass num_additional.akr2008-09-062-53/+56
| | | | | | | | (trans_open_i): use struct trans_open_t. (rb_econv_open): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/escape.trans (fun_so_escape_html_attr): fix return type.akr2008-09-062-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_open): needless branch removed.akr2008-09-062-6/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_open): test condition simplified.akr2008-09-062-4/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (stateless_encoding_i): ignore supplemental conversions.akr2008-09-063-1/+14
| | | | | | | | Encoding::Converter.stateless_encoding("html-attr-escaped") should be nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/escape.trans (escape_html_attr_init): new function.akr2008-09-063-11/+82
| | | | | | | | | | (fun_so_escape_html_attr): new function. (escape_html_attr_finish): new function. (rb_escape_html_attr): use them to quote the converted result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-09-051-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigdivrem1): optimization by skipping zeros at thematz2008-09-052-2/+9
| | | | | | | tail of digits. a patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:36169]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* comment updated.akr2008-09-051-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: uses f_real_p macro.tadf2008-09-054-22/+40
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a test for previous commit.akr2008-09-051-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_open): fail for ASCII incompatible withakr2008-09-053-0/+40
| | | | | | | newline conversion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_extract_modeenc): raise an error for ASCII incompatibleakr2008-09-053-4/+62
| | | | | | | encoding without binmode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/escape.trans: new file.akr2008-09-053-0/+127
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/transcode-tblgen.rb (StrSet.parse): accept upper caseakr2008-09-052-2/+7
| | | | | | | hexadecimal digits. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (output_hex_charref): upcase hexadecimal digits.akr2008-09-053-1/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (ECONV_UNDEF_HEX_CHARREF): defined.akr2008-09-054-0/+94
| | | | | | | | | | | * transcode.c (output_hex_charref): new function. (rb_econv_convert): call output_hex_charref if ECONV_UNDEF_HEX_CHARREF. (Init_transcode): Encoding::Converter::UNDEF_HEX_CHARREF added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (rb_econv_convert): use ECONV_INVALID_MASK andakr2008-09-052-3/+11
| | | | | | | ECONV_UNDEF_MASK. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (DBL2NUM): renamed from DOUBLE2NUM.matz2008-09-0515-107/+113
| | | | | | | a patch from Tadashi Saito <shiba at mail2.accsnet.ne.jp> in [ruby-dev:36102]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (allocate_converted_string): add arguments for a bufferakr2008-09-052-17/+44
| | | | | | | | | allocated by caller. (rb_econv_insert_output): provide caller allocated buffer to allocate_converted_string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_transcode_enc_args): local variables renamed.akr2008-09-052-30/+35
| | | | | | | (str_transcode0): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2008-09-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (econv_s_stateless_encoding): new method.akr2008-09-053-0/+55
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-09-06svn2008-09-051-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (enc_arg): extracted from str_transcode_enc_args.akr2008-09-052-16/+32
| | | | | | | (str_transcode_enc_args): use enc_arg. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (rb_io_modestr_fmode): renamed fromakr2008-09-055-181/+200
| | | | | | | | | | | | | | | | | | rb_io_mode_flags. (rb_io_modestr_oflags): renamed from rb_io_mode_modenum. (rb_io_oflags_fmode): renamed from rb_io_modenum_flags. (rb_io_mode_flags): defined as a macro. (rb_io_modenum_flags): ditto. * io.c: follow the renaming with consistency. * process.c (check_exec_redirect): call rb_io_modestr_oflags. * ext/pty/depend: pty.o depends on io.h. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/newline.trans (universal_newline_finish): new function.akr2008-09-052-2/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-09-051-0/+38
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (rb_io_mode_modenum): moved fromakr2008-09-053-1/+6
| | | | | | | | include/ruby/intern.h. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (MODENUM_MAX): removed.akr2008-09-052-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (copy_stream_fallback_body): use read method unless readpartialnobu2008-09-053-3/+18
| | | | | | | is available. [ruby-dev:36124] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_create): strips glibc style option beforenobu2008-09-052-13/+74
| | | | | | | | charset mapping. retris without options if they seemed causing error, and warns. [ruby-dev:36147] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (iseq_data_to_ary): make it static.ko12008-09-043-2/+9
| | | | | | | | * thread.c (thgroup_enclose): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (thread_recycle_stack_slot, thread_recycle_stack_count):ko12008-09-042-2/+7
| | | | | | | | make it static. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_critical): removed.ko12008-09-042-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_mark): mark p->encs.ecopts.akr2008-09-042-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (rb_transcoder): rename fields:akr2008-09-043-24/+31
| | | | | | | | | | from_encoding -> src_encoding, to_encoding -> dst_encoding. * transcode.c: follow the renaming. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c: variables renamed for consistency.akr2008-09-042-55/+59
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-09-05svn2008-09-041-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e