This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: WIN-25.1: natPlainSocketImpl.cc [UPDATED]



Tom Tromey <tromey@redhat.com> writes:
> See the GNU standards for more details.
> * Note caps and period in comment
> * Note newline differences

Formatting fix committed to branch and trunk as shown below.

  - a

2002-03-08  Adam Megacz  <adam@xwt.org>

        * java/net/natPlainSocketImpl.cc (read, write, close): Formatting
        fixed.

Index: natPlainSocketImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/natPlainSocketImpl.cc,v
retrieving revision 1.30.2.2
diff -u -r1.30.2.2 natPlainSocketImpl.cc
--- natPlainSocketImpl.cc       2002/03/08 01:45:59     1.30.2.2
+++ natPlainSocketImpl.cc       2002/03/09 07:53:45
@@ -20,17 +20,20 @@
 #undef MIN_PRIORITY
 #undef FIONREAD
 
-// stuff to make Win32 look POSIXy
-static inline int close(int s) {
+// These functions make the Win32 socket API look more POSIXy
+static inline int
+close(int s) {
   return closesocket(s);
 }
 
-static inline int write(int s, void *buf, int len)
+static inline int
+write(int s, void *buf, int len)
 {
   return send(s, (char*)buf, len, 0);
 }
 
-static inline int read(int s, void *buf, int len)
+static inline int
+read(int s, void *buf, int len)
 {
   return recv(s, (char*)buf, len, 0);
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]