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

ruby-changes:7072

From: nobu <ko1@a...>
Date: Thu, 14 Aug 2008 00:49:41 +0900 (JST)
Subject: [ruby-changes:7072] Ruby:r18590 (trunk): * transcode.c (rb_trans_open): constified.

nobu	2008-08-14 00:49:30 +0900 (Thu, 14 Aug 2008)

  New Revision: 18590

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

  Log:
    * transcode.c (rb_trans_open): constified.

  Modified files:
    trunk/transcode.c

Index: transcode.c
===================================================================
--- transcode.c	(revision 18589)
+++ transcode.c	(revision 18590)
@@ -641,6 +641,7 @@
     return tc;
 }
 
+#if 0
 static rb_transcoding *
 rb_transcoding_open(const char *from, const char *to, int flags)
 {
@@ -653,6 +654,7 @@
 
     return tc;
 }
+#endif
 
 static rb_trans_result_t
 rb_transcoding_convert(rb_transcoding *tc,
@@ -750,7 +752,7 @@
         return NULL;
 
     if (flags & (CRLF_NEWLINE|CR_NEWLINE)) {
-        char *name = (flags & CRLF_NEWLINE) ? "crlf_newline" : "cr_newline";
+        const char *name = (flags & CRLF_NEWLINE) ? "crlf_newline" : "cr_newline";
         transcoder_entry_t *e = get_transcoder_entry("", name);
         if (!e)
             return NULL;

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

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