From 12d2c8ba41edb5a02a7471e39d67ece2894492d8 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 22 Feb 2009 14:23:33 +0000 Subject: stripped trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 59bf9662a7..40f66c1307 100644 --- a/io.c +++ b/io.c @@ -2718,7 +2718,7 @@ rb_io_lines(int argc, VALUE *argv, VALUE io) * Returns an enumerator that gives each byte (0..255) in ios. * The stream must be opened for reading or an IOError * will be raised. - * + * * f = File.new("testfile") * f.bytes.to_a #=> [104, 101, 108, 108, 111] * f.rewind @@ -2734,11 +2734,11 @@ rb_io_bytes(VALUE io) /* * call-seq: * ios.chars => anEnumerator - * + * * Returns an enumerator that gives each character in ios. * The stream must be opened for reading or an IOError * will be raised. - * + * * f = File.new("testfile") * f.chars.to_a #=> ["h", "e", "l", "l", "o"] * f.rewind @@ -4950,7 +4950,7 @@ rb_scan_open_args(int argc, VALUE *argv, } } #endif - + rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, convconfig_p); perm = NIL_P(vperm) ? 0666 : NUM2UINT(vperm); @@ -5909,7 +5909,7 @@ rb_io_stdio_file(rb_io_t *fptr) * IO object or integer file descriptor and mode * string. See also IO#fileno and * IO.for_fd. - * + * * === Parameters * fd:: numeric file descriptor * mode:: file mode. a string or an integer @@ -5919,12 +5919,12 @@ rb_io_stdio_file(rb_io_t *fptr) * When mode is an integer it must be combination of * the modes defined in File::Constants. * - * When mode is a string it must be in one of the + * When mode is a string it must be in one of the * following forms: * - "fmode", * - "fmode:extern", * - "fmode:extern:intern". - * extern is the external encoding name for the IO. + * extern is the external encoding name for the IO. * intern is the internal encoding. * fmode must be combination of the directives. See * the description of class +IO+ for a description of the directives. @@ -5933,20 +5933,20 @@ rb_io_stdio_file(rb_io_t *fptr) * opt can have the following keys * :mode :: * same as mode parameter - * :external_encoding :: - * external encoding for the IO. "-" is a + * :external_encoding :: + * external encoding for the IO. "-" is a * synonym for the default external encoding. * :internal_encoding :: - * internal encoding for the IO. + * internal encoding for the IO. * "-" is a synonym for the default internal encoding. - * If the value is nil no conversion occurs. - * :encoding :: + * If the value is nil no conversion occurs. + * :encoding :: * specifies external and internal encodings as "extern:intern". * :textmode :: * If the value is truth value, same as "b" in argument mode. * :binmode :: * If the value is truth value, same as "t" in argument mode. - * + * * Also opt can have same keys in String#encode for * controlling conversion between the external encoding and the internal encoding. * @@ -5968,7 +5968,7 @@ rb_io_stdio_file(rb_io_t *fptr) * io = IO.new(2, mode: 'w', cr_newline: true, external_encoding: Encoding::UTF_16LE) * io.puts "Hello, World!" * - * both of aboves print "Hello, World!" in UTF-16LE to standard error output with + * both of aboves print "Hello, World!" in UTF-16LE to standard error output with * converting EOL generated by puts to CR. */ @@ -6021,16 +6021,16 @@ rb_io_initialize(int argc, VALUE *argv, VALUE io) * * Opens the file named by _filename_ according to * _mode_ (default is ``r'') and returns a new - * File object. - * + * File object. + * * === Parameters - * See the description of class +IO+ for a description of _mode_. - * The file mode may optionally be specified as a +Fixnum+ - * by _or_-ing together the flags (O_RDONLY etc, - * again described under +IO+). + * See the description of class +IO+ for a description of _mode_. + * The file mode may optionally be specified as a +Fixnum+ + * by _or_-ing together the flags (O_RDONLY etc, + * again described under +IO+). * - * Optional permission bits may be given in _perm_. - * These mode and permission bits are platform dependent; + * Optional permission bits may be given in _perm_. + * These mode and permission bits are platform dependent; * on Unix systems, see open(2) for details. * * Optional _opt_ parameter is same as in . @@ -6285,9 +6285,9 @@ argf_next_argv(VALUE argf) if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { #ifdef HAVE_FCHOWN (void)fchown(fw, st.st_uid, st.st_gid); -#else +#else (void)chown(fn, st.st_uid, st.st_gid); -#endif +#endif } #endif rb_stdout = prep_io(fw, FMODE_WRITABLE, rb_cFile, fn); -- cgit v1.2.3