[前][次][番号順一覧][スレッド一覧]

ruby-changes:7190

From: akr <ko1@a...>
Date: Tue, 19 Aug 2008 21:52:10 +0900 (JST)
Subject: [ruby-changes:7190] Ruby:r18709 (trunk): * include/ruby/io.h (rb_fopen): declaration removed.

akr	2008-08-19 21:51:52 +0900 (Tue, 19 Aug 2008)

  New Revision: 18709

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18709

  Log:
    * include/ruby/io.h (rb_fopen): declaration removed.
    
    * io.c (rb_fopen): unused function removed.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/io.h
    trunk/io.c

Index: include/ruby/io.h
===================================================================
--- include/ruby/io.h	(revision 18708)
+++ include/ruby/io.h	(revision 18709)
@@ -125,7 +125,6 @@
 
 FILE *rb_io_stdio_file(rb_io_t *fptr);
 
-FILE *rb_fopen(const char*, const char*);
 FILE *rb_fdopen(int, const char*);
 int  rb_io_mode_flags(const char*);
 int  rb_io_modenum_flags(int);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18708)
+++ ChangeLog	(revision 18709)
@@ -1,3 +1,9 @@
+Tue Aug 19 21:50:43 2008  Tanaka Akira  <akr@f...>
+
+	* include/ruby/io.h (rb_fopen): declaration removed.
+
+	* io.c (rb_fopen): unused function removed.
+
 Tue Aug 19 21:14:22 2008  Tanaka Akira  <akr@f...>
 
 	* include/ruby/io.h (FMODE_READWRITE): define as
Index: io.c
===================================================================
--- io.c	(revision 18708)
+++ io.c	(revision 18709)
@@ -3784,31 +3784,6 @@
 }
 
 FILE *
-rb_fopen(const char *fname, const char *mode)
-{
-    FILE *file;
-
-    file = fopen(fname, mode);
-    if (!file) {
-	if (errno == EMFILE || errno == ENFILE) {
-	    rb_gc();
-	    file = fopen(fname, mode);
-	}
-	if (!file) {
-	    rb_sys_fail(fname);
-	}
-    }
-#ifdef USE_SETVBUF
-    if (setvbuf(file, NULL, _IOFBF, 0) != 0)
-	rb_warn("setvbuf() can't be honoured for %s", fname);
-#endif
-#ifdef __human68k__
-    setmode(fileno(file), O_TEXT);
-#endif
-    return file;
-}
-
-FILE *
 rb_fdopen(int fd, const char *mode)
 {
     FILE *file;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]