summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-07 16:36:29 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-07 16:36:29 +0000
commit46d258cff5abf1cdc087643e47145cdfe2012459 (patch)
tree8733c1bc4d7c97c161492e5b7c0351fed52ca9a0
parent244b3fe7658bc2406d436ee2f07b77be1e96735e (diff)
downloadruby-46d258cff5abf1cdc087643e47145cdfe2012459.tar.gz
ruby-46d258cff5abf1cdc087643e47145cdfe2012459.tar.xz
ruby-46d258cff5abf1cdc087643e47145cdfe2012459.zip
* win32/win32.c (is_socket): reorder of function definitions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--win32/win32.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 8335584dd..b6622390d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Dec 08 01:35:44 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (is_socket): reorder of function definitions.
+
Wed Dec 08 00:44:31 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (pipe_open): win32 bidirectional pipe support.
diff --git a/win32/win32.c b/win32/win32.c
index 3cab93b4f..fd0f5a852 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1654,12 +1654,6 @@ rb_w32_open_osfhandle(long osfhandle, int flags)
#undef getsockopt
-int
-rb_w32_is_socket(int fd)
-{
- return is_socket(TO_SOCKET(fd));
-}
-
static int
is_socket(SOCKET sock)
{
@@ -1686,6 +1680,12 @@ is_socket(SOCKET sock)
return result;
}
+int
+rb_w32_is_socket(int fd)
+{
+ return is_socket(TO_SOCKET(fd));
+}
+
//
// Since the errors returned by the socket error function
// WSAGetLastError() are not known by the library routine strerror