1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
akr 58964e3249 * include/ruby/io.h (rb_io_t): new fields: encs.ecopts and
writeconv_pre_ecopts.
  (MakeOpenFile): initialize them.

* include/ruby/encoding.h (rb_str_transcode): take ecopts argument.
  (rb_econv_flags): removed.
  (rb_econv_prepare_opts): declared.
  (rb_econv_open_opts): declared.

* io.c (make_writeconv): use rb_econv_open_opts.
  (make_readconv): ditto.
  (io_fwrite): follow rb_str_transcode change.
  (rb_io_extract_modeenc): use rb_econv_prepare_opts.
  (rb_file_open_generic): initialize encs.ecopts.
  (rb_file_open_internal): ditto.
  (rb_io_reopen): ditto.
  (argf_ecopts): defined.
  (argf_next_argv): set encs.ecopts.
  (io_encoding_set): use rb_econv_prepare_opts.
  (argf_set_encoding): set argf_ecopts.

* gc.c (gc_mark_children): mark encs.ecopts and writeconv_pre_ecopts
  in T_FILE.

* transcode.c (transcode_loop): take ecopts argument. use
  rb_econv_open_opts.
  (rb_econv_flags): removed.
  (rb_econv_prepare_opts): defined.
  (rb_econv_open_opts): defined.
  (str_transcode0): take ecopts.
  (str_transcode): use rb_econv_prepare_opts.
  (rb_str_transcode): take ecopts.
  (econv_init): accept hash argument.
  (econv_insert_output): follow rb_str_transcode change.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-03 18:18:10 +00:00
..
backward * lib/mkmf.rb (init_mkmf): add include/ruby/backward to $INCFLAGS. 2008-08-17 06:58:10 +00:00
defines.h * include/ruby/defines.h (RUBY_ALIAS_FUNCTION): fallback definition. 2008-08-14 06:27:50 +00:00
encoding.h * include/ruby/io.h (rb_io_t): new fields: encs.ecopts and 2008-09-03 18:18:10 +00:00
intern.h * include/ruby/intern.h: rename RB_UBF_DFL to 2008-08-31 07:44:24 +00:00
io.h * include/ruby/io.h (rb_io_t): new fields: encs.ecopts and 2008-09-03 18:18:10 +00:00
missing.h * configure.in: removed strftime from AC_REPLACE_FUNCS(). 2008-08-20 16:04:11 +00:00
mvm.h * vm_core.h (struct rb_vm_struct): moved ruby_debug, ruby_verbose, and 2008-06-09 05:18:03 +00:00
node.h * array.c (rb_ary_sort_bang): respect overridden <=> for String and 2008-08-04 18:29:55 +00:00
oniguruma.h * include/ruby/oniguruma.h (OnigEncoding): removed auxiliary_data. 2008-07-04 11:44:05 +00:00
re.h * include/ruby/re.h (struct rmatch_offset): new struct for character 2008-02-16 20:08:35 +00:00
regex.h * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
ruby.h * gc.c, include/ruby/ruby.h: rename T_DEFERRED to T_ZOMBIE. 2008-08-29 11:22:42 +00:00
st.h add a comment. 2008-08-07 09:06:04 +00:00
util.h * debug.c (ruby_set_debug_option): separated ruby_each_words(). 2008-02-23 21:13:05 +00:00
win32.h * win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped file 2008-08-28 12:46:58 +00:00