1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/stringio
usa 101e636de7 merge revision(s) 45676,45677: [Backport #9769]
stringio.c: move GC guard

	* ext/stringio/stringio.c (strio_write): move GC guard after the
  last using position.
	* ext/stringio/stringio.c (strio_write): use rb_str_append to
	  reuse coderange bits other than ASCII-8BIT, and keep
	  taintedness.  [ruby-dev:48118] [Bug #9769]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-03 03:52:57 +00:00
..
depend * ext: remove trailing spaces. 2011-05-22 09:26:02 +00:00
extconf.rb * ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead. 2004-11-01 05:04:04 +00:00
README * ext: remove trailing spaces. 2011-05-22 09:26:02 +00:00
stringio.c merge revision(s) 45676,45677: [Backport #9769] 2014-09-03 03:52:57 +00:00

-*- rd -*-
$Author$

=begin

= StringIO
Pseudo (({IO})) class from/to (({String})).

This library is based on MoonWolf version written in Ruby.  Thanks a lot.

= Differences to (({IO}))

* not implemented: (({fcntl})), (({reopen})).
* (({fileno})) returns nil.
* (({pos=})) returns new position, not 0.
* (({ungetc})) does nothing at start of the string.

=end