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

ruby-changes:28741

From: akr <ko1@a...>
Date: Fri, 17 May 2013 12:12:34 +0900 (JST)
Subject: [ruby-changes:28741] akr:r40793 (trunk): Enable the document for Socket::Ifaddr#ifindex.

akr	2013-05-17 12:11:42 +0900 (Fri, 17 May 2013)

  New Revision: 40793

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

  Log:
    Enable the document for Socket::Ifaddr#ifindex.

  Modified files:
    trunk/ext/socket/ifaddr.c

Index: ext/socket/ifaddr.c
===================================================================
--- ext/socket/ifaddr.c	(revision 40792)
+++ ext/socket/ifaddr.c	(revision 40793)
@@ -128,6 +128,7 @@ ifaddr_name(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/socket/ifaddr.c#L128
     return rb_str_new_cstr(ifa->ifa_name);
 }
 
+#ifdef HAVE_IF_NAMETOINDEX
 /*
  * call-seq:
  *   ifaddr.ifindex => integer
@@ -135,7 +136,6 @@ ifaddr_name(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/socket/ifaddr.c#L136
  * Returns the interface index of _ifaddr_.
  */
 
-#ifdef HAVE_IF_NAMETOINDEX
 static VALUE
 ifaddr_ifindex(VALUE self)
 {

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

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