apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1068870 - in /apr/apr/trunk: build/ file_io/os2/ file_io/win32/ include/arch/netware/ include/arch/os2/ include/arch/win32/ include/private/ locks/os2/ threadproc/netware/
Date Wed, 09 Feb 2011 12:50:54 GMT
Author: fuankg
Date: Wed Feb  9 12:50:53 2011
New Revision: 1068870

URL: http://svn.apache.org/viewvc?rev=1068870&view=rev
Log:
Axed C++ comments.

Modified:
    apr/apr/trunk/build/aplibtool.c
    apr/apr/trunk/file_io/os2/readwrite.c
    apr/apr/trunk/file_io/win32/pipe.c
    apr/apr/trunk/file_io/win32/readwrite.c
    apr/apr/trunk/include/arch/netware/apr_arch_threadproc.h
    apr/apr/trunk/include/arch/os2/apr_arch_file_io.h
    apr/apr/trunk/include/arch/win32/apr_arch_file_io.h
    apr/apr/trunk/include/arch/win32/apr_arch_misc.h
    apr/apr/trunk/include/private/apr_dbd_odbc_v2.h
    apr/apr/trunk/locks/os2/proc_mutex.c
    apr/apr/trunk/locks/os2/thread_cond.c
    apr/apr/trunk/threadproc/netware/thread.c

Modified: apr/apr/trunk/build/aplibtool.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/aplibtool.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/build/aplibtool.c (original)
+++ apr/apr/trunk/build/aplibtool.c Wed Feb  9 12:50:53 2011
@@ -194,7 +194,7 @@ bool parse_long_opt(char *arg, cmd_data_
     } else if (strcmp(var, "export-all") == 0) {
         export_all = true;
     } else if (strcmp(var, "tag") == 0) {
-      // What's this for? Ignore for now
+      /* What's this for? Ignore for now */
     } else {
         return false;
     }

Modified: apr/apr/trunk/file_io/os2/readwrite.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/os2/readwrite.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/file_io/os2/readwrite.c (original)
+++ apr/apr/trunk/file_io/os2/readwrite.c Wed Feb  9 12:50:53 2011
@@ -167,7 +167,7 @@ APR_DECLARE(apr_status_t) apr_file_write
         file_lock(thefile);
 
         if ( thefile->direction == 0 ) {
-            // Position file pointer for writing at the offset we are logically reading from
+            /* Position file pointer for writing at the offset we are logically reading from
*/
             ULONG offset = thefile->filePtr - thefile->dataRead + thefile->bufpos;
             if (offset != thefile->filePtr)
                 DosSetFilePtr(thefile->filedes, offset, FILE_BEGIN, &thefile->filePtr
);

Modified: apr/apr/trunk/file_io/win32/pipe.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/win32/pipe.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/pipe.c (original)
+++ apr/apr/trunk/file_io/win32/pipe.c Wed Feb  9 12:50:53 2011
@@ -141,10 +141,10 @@ APR_DECLARE(apr_status_t) apr_file_pipe_
         (*in)->filehand = CreateNamedPipe(name,
                                           dwOpenMode,
                                           dwPipeMode,
-                                          1,            //nMaxInstances,
-                                          0,            //nOutBufferSize, 
-                                          65536,        //nInBufferSize,                
  
-                                          1,            //nDefaultTimeOut,              
 
+                                          1,            /* nMaxInstances,   */
+                                          0,            /* nOutBufferSize,  */ 
+                                          65536,        /* nInBufferSize,   */          
      
+                                          1,            /* nDefaultTimeOut, */          
     
                                           &sa);
 
         /* Create the write end of the pipe */
@@ -158,12 +158,12 @@ APR_DECLARE(apr_status_t) apr_file_pipe_
         }
         
         (*out)->filehand = CreateFile(name,
-                                      GENERIC_WRITE,   // access mode
-                                      0,               // share mode
-                                      &sa,             // Security attributes
-                                      OPEN_EXISTING,   // dwCreationDisposition
-                                      dwOpenMode,      // Pipe attributes
-                                      NULL);           // handle to template file
+                                      GENERIC_WRITE,   /* access mode             */
+                                      0,               /* share mode              */
+                                      &sa,             /* Security attributes     */
+                                      OPEN_EXISTING,   /* dwCreationDisposition   */
+                                      dwOpenMode,      /* Pipe attributes         */
+                                      NULL);           /* handle to template file */
     }
     else {
         /* Pipes on Win9* are blocking. Live with it. */

Modified: apr/apr/trunk/file_io/win32/readwrite.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/win32/readwrite.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/readwrite.c (original)
+++ apr/apr/trunk/file_io/win32/readwrite.c Wed Feb  9 12:50:53 2011
@@ -272,7 +272,7 @@ APR_DECLARE(apr_status_t) apr_file_write
         }
 
         if (thefile->direction == 0) {
-            // Position file pointer for writing at the offset we are logically reading from
+            /* Position file pointer for writing at the offset we are logically reading from
*/
             apr_off_t offset = thefile->filePtr - thefile->dataRead + thefile->bufpos;
             DWORD offlo = (DWORD)offset;
             LONG  offhi = (LONG)(offset >> 32);
@@ -284,7 +284,7 @@ APR_DECLARE(apr_status_t) apr_file_write
 
         rv = 0;
         while (rv == 0 && size > 0) {
-            if (thefile->bufpos == thefile->bufsize)   // write buffer is full
+            if (thefile->bufpos == thefile->bufsize)   /* write buffer is full */
                 rv = apr_file_flush(thefile);
 
             blocksize = size > thefile->bufsize - thefile->bufpos ? 

Modified: apr/apr/trunk/include/arch/netware/apr_arch_threadproc.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/arch/netware/apr_arch_threadproc.h?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/include/arch/netware/apr_arch_threadproc.h (original)
+++ apr/apr/trunk/include/arch/netware/apr_arch_threadproc.h Wed Feb  9 12:50:53 2011
@@ -68,11 +68,13 @@ struct apr_thread_once_t {
     unsigned long value;
 };
 
-//struct apr_proc_t {
-//    apr_pool_t *pool;
-//    pid_t pid;
-//    apr_procattr_t *attr;
-//};
+/*
+struct apr_proc_t {
+    apr_pool_t *pool;
+    pid_t pid;
+    apr_procattr_t *attr;
+};
+*/
 
 #endif  /* ! THREAD_PROC_H */
 

Modified: apr/apr/trunk/include/arch/os2/apr_arch_file_io.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/arch/os2/apr_arch_file_io.h?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/include/arch/os2/apr_arch_file_io.h (original)
+++ apr/apr/trunk/include/arch/os2/apr_arch_file_io.h Wed Feb  9 12:50:53 2011
@@ -49,13 +49,13 @@ struct apr_file_t {
 
     /* Stuff for buffered mode */
     char *buffer;
-    apr_size_t bufsize;       // The size of the buffer
-    apr_size_t bufpos;        // Read/Write position in buffer
-    unsigned long dataRead;   // amount of valid data read into buffer
-    int direction;            // buffer being used for 0 = read, 1 = write
-    unsigned long filePtr;    // position in file of handle
-    apr_thread_mutex_t *mutex;// mutex semaphore, must be owned to access the above fields
-
+    apr_size_t bufsize;        /* The size of the buffer                    */
+    apr_size_t bufpos;         /* Read/Write position in buffer             */
+    unsigned long dataRead;    /* amount of valid data read into buffer     */
+    int direction;             /* buffer being used for 0 = read, 1 = write */
+    unsigned long filePtr;     /* position in file of handle                */
+    apr_thread_mutex_t *mutex; /* mutex semaphore, must be owned to access
+                                  the above fields                          */
     int ungetchar;
 };
 

Modified: apr/apr/trunk/include/arch/win32/apr_arch_file_io.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/arch/win32/apr_arch_file_io.h?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/include/arch/win32/apr_arch_file_io.h (original)
+++ apr/apr/trunk/include/arch/win32/apr_arch_file_io.h Wed Feb  9 12:50:53 2011
@@ -155,13 +155,13 @@ apr_status_t more_finfo(apr_finfo_t *fin
  *           correctly when writing to a file with this flag set TRUE.
  */
 
-// for apr_poll.c;
+/* for apr_poll.c */
 #define filedes filehand
 
 struct apr_file_t {
     apr_pool_t *pool;
     HANDLE filehand;
-    BOOLEAN pipe;              // Is this a pipe of a file?
+    BOOLEAN pipe;              /* Is this a pipe of a file? */
     OVERLAPPED *pOverlapped;
     apr_interval_time_t timeout;
     apr_int32_t flags;
@@ -171,18 +171,19 @@ struct apr_file_t {
     char *fname;
     DWORD dwFileAttributes;
     int eof_hit;
-    BOOLEAN buffered;          // Use buffered I/O?
-    int ungetchar;             // Last char provided by an unget op. (-1 = no char)
+    BOOLEAN buffered;          /* Use buffered I/O? */
+    int ungetchar;             /* Last char provided by an unget op. (-1 = no char) */
     int append; 
 
     /* Stuff for buffered mode */
     char *buffer;
-    apr_size_t bufpos;         // Read/Write position in buffer
-    apr_size_t bufsize;        // The size of the buffer
-    apr_size_t dataRead;       // amount of valid data read into buffer
-    int direction;             // buffer being used for 0 = read, 1 = write
-    apr_off_t filePtr;         // position in file of handle
-    apr_thread_mutex_t *mutex; // mutex semaphore, must be owned to access the above fields
+    apr_size_t bufpos;         /* Read/Write position in buffer             */
+    apr_size_t bufsize;        /* The size of the buffer                    */
+    apr_size_t dataRead;       /* amount of valid data read into buffer     */
+    int direction;             /* buffer being used for 0 = read, 1 = write */
+    apr_off_t filePtr;         /* position in file of handle                */
+    apr_thread_mutex_t *mutex; /* mutex semaphore, must be owned to access
+                                  the above fields                          */
 
 #if APR_FILES_AS_SOCKETS
     /* if there is a timeout set, then this pollset is used */

Modified: apr/apr/trunk/include/arch/win32/apr_arch_misc.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/arch/win32/apr_arch_misc.h?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/include/arch/win32/apr_arch_misc.h (original)
+++ apr/apr/trunk/include/arch/win32/apr_arch_misc.h Wed Feb  9 12:50:53 2011
@@ -172,13 +172,13 @@ static APR_INLINE void* apr_realloc_dbg(
 #endif  /* ! _MSC_VER */
 
 typedef enum {
-    DLL_WINBASEAPI = 0,    // kernel32 From WinBase.h
-    DLL_WINADVAPI = 1,     // advapi32 From WinBase.h
-    DLL_WINSOCKAPI = 2,    // mswsock  From WinSock.h
-    DLL_WINSOCK2API = 3,   // ws2_32   From WinSock2.h
-    DLL_SHSTDAPI = 4,      // shell32  From ShellAPI.h
-    DLL_NTDLL = 5,         // shell32  From our real kernel
-    DLL_defined = 6        // must define as last idx_ + 1
+    DLL_WINBASEAPI = 0,    /* kernel32 From WinBase.h       */
+    DLL_WINADVAPI = 1,     /* advapi32 From WinBase.h       */
+    DLL_WINSOCKAPI = 2,    /* mswsock  From WinSock.h       */
+    DLL_WINSOCK2API = 3,   /* ws2_32   From WinSock2.h      */
+    DLL_SHSTDAPI = 4,      /* shell32  From ShellAPI.h      */
+    DLL_NTDLL = 5,         /* shell32  From our real kernel */
+    DLL_defined = 6        /* must define as last idx_ + 1  */
 } apr_dlltoken_e;
 
 FARPROC apr_load_dll_func(apr_dlltoken_e fnLib, char *fnName, int ordinal);

Modified: apr/apr/trunk/include/private/apr_dbd_odbc_v2.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/private/apr_dbd_odbc_v2.h?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/include/private/apr_dbd_odbc_v2.h (original)
+++ apr/apr/trunk/include/private/apr_dbd_odbc_v2.h Wed Feb  9 12:50:53 2011
@@ -23,7 +23,7 @@
 *
 */
 
-#define SQLHANDLE SQLHENV   // Presumes that ENV, DBC, and STMT handles are all the same
datatype
+#define SQLHANDLE SQLHENV   /* Presumes that ENV, DBC, and STMT handles are all the same
datatype */
 #define SQL_NULL_HANDLE 0
 #define SQL_HANDLE_STMT 1
 #define SQL_HANDLE_DBC  2

Modified: apr/apr/trunk/locks/os2/proc_mutex.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/locks/os2/proc_mutex.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/locks/os2/proc_mutex.c (original)
+++ apr/apr/trunk/locks/os2/proc_mutex.c Wed Feb  9 12:50:53 2011
@@ -32,7 +32,7 @@ static char *fixed_name(const char *fnam
     if (fname == NULL)
         semname = NULL;
     else {
-        // Semaphores don't live in the file system, fix up the name
+        /* Semaphores don't live in the file system, fix up the name */
         while (*fname == '/' || *fname == '\\') {
             fname++;
         }

Modified: apr/apr/trunk/locks/os2/thread_cond.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/locks/os2/thread_cond.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/locks/os2/thread_cond.c (original)
+++ apr/apr/trunk/locks/os2/thread_cond.c Wed Feb  9 12:50:53 2011
@@ -24,7 +24,7 @@
 #include <string.h>
 
 #ifndef DCE_POSTONE
-#define DCE_POSTONE   0x0800 // Post one flag
+#define DCE_POSTONE   0x0800 /* Post one flag */
 #endif
 
 static apr_status_t thread_cond_cleanup(void *data)

Modified: apr/apr/trunk/threadproc/netware/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/netware/thread.c?rev=1068870&r1=1068869&r2=1068870&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/netware/thread.c (original)
+++ apr/apr/trunk/threadproc/netware/thread.c Wed Feb  9 12:50:53 2011
@@ -134,10 +134,10 @@ apr_status_t apr_thread_create(apr_threa
             /* long flags */                flags,
             /* NXThreadId_t *thread_id */   &(*new)->td);
 
-    if(stat==0)
+    if (stat == 0)
         return APR_SUCCESS;
         
-    return(stat);// if error    
+    return(stat); /* if error */    
 }
 
 apr_os_thread_t apr_os_thread_current()



Mime
View raw message