summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * pack.c (encodes): make buff fixed length to avoid SEGV byakr2008-09-042-7/+19
| | | | | | | ruby -e '["a"*10000000].pack("m1000000000")' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): set exception modemame2008-09-042-0/+12
| | | | | | | | correctly. In spite of BigDecimal.mode(BigDecimal::EXCEPTION_ALL, true), BigDecimal.new("NaN") did not raise an exception previously. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_file_open_str): declared.akr2008-09-044-1/+17
| | | | | | | | | | | * io.c (rb_file_open_str): defined. * ext/zlib/zlib.c (gzfile_s_open): use rb_file_open_str instead of rb_file_open. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/newline.trans: record newline types met in universalakr2008-09-042-12/+32
| | | | | | | newline decoder. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prime.rb (Prime::OldCompatibility#each): added compatibility toyugui2008-09-042-20/+42
| | | | | | | | Ruby 1.8.7. (Prime#each): added more rdocs. (Prime#each): remembers the last value of the given block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-09-041-14/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* property.nobu2008-09-040-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (econv_init): accept an integer as 3rd argument as well.akr2008-09-042-4/+19
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (sym_partial_input): new variable.akr2008-09-043-42/+66
| | | | | | | (econv_primitive_convert): accept a hash as 5th argument as well. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (sym_universal_newline_decoder): new variable.akr2008-09-043-40/+61
| | | | | | | | | | (sym_crlf_newline_encoder): ditto. (sym_cr_newline_encoder): ditto. (econv_opts): check newline converter options. (econv_init): make 3rd argument hash/nil only. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c: rename some debug functions.ko12008-09-042-17/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_check_trap_pending): added for compatibility.ko12008-09-044-75/+53
| | | | | | | | | * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: remove ruby/signal.h dependency. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode_data.h (PType): defined unconditionaly.akr2008-09-043-4/+6
| | | | | | | | * transcode.c (PType): don't define here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: variables renamed for consistency.akr2008-09-042-68/+72
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_profile_record_get): to static function.nari2008-09-042-4/+11
| | | | | | | | | (gc_profile_result): ditto. (gc_profile_report): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (rb_io_enc_t): rename flags to ecflags.akr2008-09-043-17/+25
| | | | | | | | | | | (rb_io_t): rename writeconv_pre_flags to writeconv_pre_ecflags. (MakeOpenFile): follow the renaming. * io.c: follow the renaming. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (ECONV_INVALID_IGNORE): removed becauseakr2008-09-046-38/+34
| | | | | | | | | | | | | | | it tend to cause security problem. If the behaviour is really required, ECONV_INVALID_REPLACE with empty string can be used. For example, CVE-2006-2313, CVE-2008-1036, [ruby-core:15645] (ECONV_UNDEF_IGNORE): ditto. * transcode.c (rb_econv_convert): follow the above change. (econv_opts): ditto. (Init_transcode): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (rb_vm_mark): commit miss.nobu2008-09-041-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (struct rb_vm_struct): replaced signal staff with trapnobu2008-09-046-56/+63
| | | | | | | | | | | | | | | | | | | | staff. * signal.c (signal_buff): per process resouce now. * signal.c (trap_list): moved to VM. * signal.c (rb_get_next_signal): reverted. * signal.c (rb_trap_exit): trap_pending_list was no longer used. * thread.c (timer_thread_function): delivers buffered per-process signals to each VMs. * vm.c (rb_vm_mark): marks trap_list. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (struct sysopen_struct, rb_sysopen_internal, rb_sysopen):nobu2008-09-042-4/+7
| | | | | | | constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: expanded ARGF members macros.nobu2008-09-042-136/+127
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/transcode-tblgen.rb (citrus_decode_mapsrc): support older 1.8.nobu2008-09-042-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_next_argv, argf_set_encoding): copy struct wise.nobu2008-09-042-8/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_scan_open_args): follow rb_str_transcode change.akr2008-09-042-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e