summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 14:23:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 14:23:33 +0000
commit12d2c8ba41edb5a02a7471e39d67ece2894492d8 (patch)
tree5b2e87ac380efcb2141c4fab97e86c25c7214799 /io.c
parent624d07b0e4257a5261558a154eddd464d85e6174 (diff)
stripped trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c48
1 files changed, 24 insertions, 24 deletions
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 <em>ios</em>.
* The stream must be opened for reading or an <code>IOError</code>
* 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 <em>ios</em>.
* The stream must be opened for reading or an <code>IOError</code>
* 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)
* <code>IO</code> object or integer file descriptor and mode
* string. See also <code>IO#fileno</code> and
* <code>IO.for_fd</code>.
- *
+ *
* === 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 <code>mode</code> is an integer it must be combination of
* the modes defined in <code>File::Constants</code>.
*
- * When <code>mode</code> is a string it must be in one of the
+ * When <code>mode</code> is a string it must be in one of the
* following forms:
* - "fmode",
* - "fmode:extern",
* - "fmode:extern:intern".
- * <code>extern</code> is the external encoding name for the IO.
+ * <code>extern</code> is the external encoding name for the IO.
* <code>intern</code> is the internal encoding.
* <code>fmode</code> 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)
* <code>opt</code> can have the following keys
* :mode ::
* same as <code>mode</code> 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 <code>mode</code>.
* :binmode ::
* If the value is truth value, same as "t" in argument <code>mode</code>.
- *
+ *
* Also <code>opt</code> can have same keys in <code>String#encode</code> 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 <code>puts</code> 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
- * <code>File</code> object.
- *
+ * <code>File</code> 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 <code>open(2)</code> for details.
*
* Optional _opt_ parameter is same as in <code.IO.open</code>.
@@ -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);