[macruby-changes] [5129] MacRuby/trunk/io.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 6 20:13:21 PST 2011


Revision: 5129
          http://trac.macosforge.org/projects/ruby/changeset/5129
Author:   pthomson at apple.com
Date:     2011-01-06 20:13:16 -0800 (Thu, 06 Jan 2011)
Log Message:
-----------
Remove unnecessary 'inline' keywords for various helper methods.

Modified Paths:
--------------
    MacRuby/trunk/io.c

Modified: MacRuby/trunk/io.c
===================================================================
--- MacRuby/trunk/io.c	2011-01-07 03:44:56 UTC (rev 5128)
+++ MacRuby/trunk/io.c	2011-01-07 04:13:16 UTC (rev 5129)
@@ -101,13 +101,13 @@
     return tmp;
 }
 
-static inline VALUE
+static VALUE
 rb_io_get_io(VALUE io)
 {
     return rb_convert_type(io, T_FILE, "IO", "to_io");
 }
 
-static inline VALUE
+static VALUE
 rb_io_check_io(VALUE io)
 {
     return rb_check_convert_type(io, T_FILE, "IO", "to_io");
@@ -199,7 +199,7 @@
     return convert_fmode_to_oflags(convert_mode_string_to_fmode(s));
 }
 
-static inline int
+static int
 convert_oflags_to_fmode(int mode)
 {
     int flags = 0;
@@ -242,13 +242,13 @@
     return io;
 }
 
-static inline bool
+static bool
 rb_io_is_open(rb_io_t *io_struct) 
 {
     return io_struct->fd != -1;
 }
 
-static inline void
+static void
 rb_io_assert_open(rb_io_t *io_struct)
 {
     if (!rb_io_is_open(io_struct)) {
@@ -257,25 +257,25 @@
     }
 }
 
-static inline bool
+static bool
 rb_io_is_closed_for_reading(rb_io_t *io_struct) 
 {
     return io_struct->read_fd == -1;
 }
 
-static inline bool
+static bool
 rb_io_is_closed_for_writing(rb_io_t *io_struct) 
 {
     return io_struct->write_fd == -1;
 }
 
-static inline bool
+static bool
 rb_io_is_readable(rb_io_t *io_struct)
 {
     return !rb_io_is_closed_for_reading(io_struct);
 }
 
-static inline bool
+static bool
 rb_io_is_writable(rb_io_t *io_struct)
 {
     return !rb_io_is_closed_for_writing(io_struct);
@@ -307,7 +307,7 @@
     return (VALUE)io;
 }
 
-static inline void 
+static void 
 prepare_io_from_fd(rb_io_t *io_struct, int fd, int mode)
 {
     // While getting rid of the FMODE_* constants and replacing them with the 
@@ -900,7 +900,7 @@
     return io;
 }
 
-static inline bool
+static bool
 __rb_io_wait_readable(int fd)
 {
     if (errno == EINTR) {
@@ -937,7 +937,7 @@
     return io_struct->buf != NULL && CFDataGetLength(io_struct->buf) > 0;
 }
 
-static inline long
+static long
 read_internal(int fd, UInt8 *buffer, long len)
 {
     long code;
@@ -953,7 +953,7 @@
     return code;
 }
 
-static inline void
+static void
 rb_io_create_buf(rb_io_t *io_struct)
 {
     if (io_struct->buf == NULL) {
@@ -963,7 +963,7 @@
     }
 }
 
-static inline void
+static void
 rb_io_read_update(rb_io_t *io_struct, long len)
 {
     io_struct->buf_offset += len;
@@ -3233,7 +3233,7 @@
     return rb_io_s_new0(klass, argc, argv);
 }
 
-static inline void
+static void
 argf_init(struct argf *p, VALUE v)
 {
     p->filename = Qnil;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110106/46d717ca/attachment.html>


More information about the macruby-changes mailing list