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

ruby-changes:28106

From: akr <ko1@a...>
Date: Sat, 6 Apr 2013 20:22:50 +0900 (JST)
Subject: [ruby-changes:28106] akr:r40158 (trunk): * ext/socket/socket.c (rsock_sys_fail_raddrinfo): Renamed from

akr	2013-04-06 20:21:05 +0900 (Sat, 06 Apr 2013)

  New Revision: 40158

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

  Log:
    * ext/socket/socket.c (rsock_sys_fail_raddrinfo): Renamed from
      rsock_sys_fail_addrinfo.
      (rsock_sys_fail_raddrinfo_or_sockaddr): Renamed from
      rsock_sys_fail_addrinfo_or_sockaddr.
    
    * ext/socket/rubysocket.h: Follow the above change.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/rubysocket.h
    trunk/ext/socket/socket.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40157)
+++ ChangeLog	(revision 40158)
@@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Apr  6 20:17:51 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/socket.c (rsock_sys_fail_raddrinfo): Renamed from
+	  rsock_sys_fail_addrinfo.
+	  (rsock_sys_fail_raddrinfo_or_sockaddr): Renamed from
+	  rsock_sys_fail_addrinfo_or_sockaddr.
+
+	* ext/socket/rubysocket.h: Follow the above change.
+
 Sat Apr  6 19:24:59 2013  Tanaka Akira  <akr@f...>
 
 	* ext/socket/socket.c (rsock_sys_fail_sockaddr): Takes struct sockaddr
Index: ext/socket/rubysocket.h
===================================================================
--- ext/socket/rubysocket.h	(revision 40157)
+++ ext/socket/rubysocket.h	(revision 40158)
@@ -343,7 +343,7 @@ void rsock_init_socket_init(void); https://github.com/ruby/ruby/blob/trunk/ext/socket/rubysocket.h#L343
 NORETURN(void rsock_sys_fail_host_port(const char *, VALUE, VALUE));
 NORETURN(void rsock_sys_fail_path(const char *, VALUE));
 NORETURN(void rsock_sys_fail_sockaddr(const char *, struct sockaddr *addr, socklen_t len));
-NORETURN(void rsock_sys_fail_addrinfo(const char *, VALUE rai));
-NORETURN(void rsock_sys_fail_sockaddr_or_addrinfo(const char *, VALUE addr, VALUE rai));
+NORETURN(void rsock_sys_fail_raddrinfo(const char *, VALUE rai));
+NORETURN(void rsock_sys_fail_raddrinfo_or_sockaddr(const char *, VALUE addr, VALUE rai));
 
 #endif
Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 40157)
+++ ext/socket/socket.c	(revision 40158)
@@ -53,11 +53,11 @@ rsock_sys_fail_sockaddr(const char *mesg https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L53
 
     rai = rsock_addrinfo_new(addr, len, PF_UNSPEC, 0, 0, Qnil, Qnil);
 
-    rsock_sys_fail_addrinfo(mesg, rai);
+    rsock_sys_fail_raddrinfo(mesg, rai);
 }
 
 void
-rsock_sys_fail_addrinfo(const char *mesg, VALUE rai)
+rsock_sys_fail_raddrinfo(const char *mesg, VALUE rai)
 {
     VALUE str, message;
 
@@ -68,7 +68,7 @@ rsock_sys_fail_addrinfo(const char *mesg https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L68
 }
 
 void
-rsock_sys_fail_addrinfo_or_sockaddr(const char *mesg, VALUE addr, VALUE rai)
+rsock_sys_fail_raddrinfo_or_sockaddr(const char *mesg, VALUE addr, VALUE rai)
 {
     if (NIL_P(rai)) {
         StringValue(addr);
@@ -77,7 +77,7 @@ rsock_sys_fail_addrinfo_or_sockaddr(cons https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L77
             (socklen_t)RSTRING_LEN(addr)); /* overflow should be checked already */
     }
     else
-        rsock_sys_fail_addrinfo(mesg, rai);
+        rsock_sys_fail_raddrinfo(mesg, rai);
 }
 
 static void
@@ -384,7 +384,7 @@ sock_connect(VALUE sock, VALUE addr) https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L384
     fd = fptr->fd;
     n = rsock_connect(fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_SOCKLEN(addr), 0);
     if (n < 0) {
-	rsock_sys_fail_addrinfo_or_sockaddr("connect(2)", addr, rai);
+	rsock_sys_fail_raddrinfo_or_sockaddr("connect(2)", addr, rai);
     }
 
     return INT2FIX(n);
@@ -447,7 +447,7 @@ sock_connect_nonblock(VALUE sock, VALUE https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L447
     if (n < 0) {
         if (errno == EINPROGRESS)
             rb_mod_sys_fail(rb_mWaitWritable, "connect(2) would block");
-	rsock_sys_fail_addrinfo_or_sockaddr("connect(2)", addr, rai);
+	rsock_sys_fail_raddrinfo_or_sockaddr("connect(2)", addr, rai);
     }
 
     return INT2FIX(n);
@@ -548,7 +548,7 @@ sock_bind(VALUE sock, VALUE addr) https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L548
     SockAddrStringValueWithAddrinfo(addr, rai);
     GetOpenFile(sock, fptr);
     if (bind(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_SOCKLEN(addr)) < 0)
-	rsock_sys_fail_addrinfo_or_sockaddr("bind(2)", addr, rai);
+	rsock_sys_fail_raddrinfo_or_sockaddr("bind(2)", addr, rai);
 
     return INT2FIX(0);
 }

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

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