apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r434319 - /apr/apr/branches/1.2.x/misc/win32/start.c
Date Thu, 24 Aug 2006 07:05:09 GMT
Author: mturk
Date: Thu Aug 24 00:05:09 2006
New Revision: 434319

URL: http://svn.apache.org/viewvc?rev=434319&view=rev
Log:
Tab police + Trim trailing spaces.
No functional change.

Modified:
    apr/apr/branches/1.2.x/misc/win32/start.c

Modified: apr/apr/branches/1.2.x/misc/win32/start.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/misc/win32/start.c?rev=434319&r1=434318&r2=434319&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/misc/win32/start.c (original)
+++ apr/apr/branches/1.2.x/misc/win32/start.c Thu Aug 24 00:05:09 2006
@@ -34,10 +34,10 @@
  *
  * An internal apr function to convert a double-null terminated set
  * of single-null terminated strings from wide Unicode to narrow utf-8
- * as a list of strings.  These are allocated from the MSVCRT's 
+ * as a list of strings.  These are allocated from the MSVCRT's
  * _CRT_BLOCK to trick the system into trusting our store.
  */
-static int warrsztoastr(const char * const * *retarr, 
+static int warrsztoastr(const char * const * *retarr,
                         const wchar_t * arrsz, int args)
 {
     const apr_wchar_t *wch;
@@ -49,7 +49,7 @@
 
     if (args < 0) {
         for (args = 1, wch = arrsz; wch[0] || wch[1]; ++wch)
-            if (!*wch) 
+            if (!*wch)
                 ++args;
     }
     wsize = 1 + wch - arrsz;
@@ -63,7 +63,7 @@
      * 4 ucs bytes will hold a wchar_t pair value (20 bits)
      */
     newlen = totlen = wsize * 3 + 1;
-    newarr[0] = _malloc_dbg(newlen * sizeof(char), 
+    newarr[0] = _malloc_dbg(newlen * sizeof(char),
                             _CRT_BLOCK, __FILE__, __LINE__);
 
     (void)apr_conv_ucs2_to_utf8(arrsz, &wsize,
@@ -72,7 +72,7 @@
     assert(newlen && !wsize);
     /* Return to the free store if the heap realloc is the least bit optimized
      */
-    newarr[0] = _realloc_dbg(newarr[0], totlen - newlen, 
+    newarr[0] = _realloc_dbg(newarr[0], totlen - newlen,
                              _CRT_BLOCK, __FILE__, __LINE__);
 
     for (arg = 1; arg < args; ++arg) {
@@ -91,8 +91,8 @@
 /* Reprocess the arguments to main() for a completely apr-ized application
  */
 
-APR_DECLARE(apr_status_t) apr_app_initialize(int *argc, 
-                                             const char * const * *argv, 
+APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
+                                             const char * const * *argv,
                                              const char * const * *env)
 {
     apr_status_t rv = apr_initialize();
@@ -127,8 +127,8 @@
         sysstr = GetEnvironmentStringsW();
         dupenv = warrsztoastr(&_environ, sysstr, -1);
 
-	if (env) {
-            *env = _malloc_dbg((dupenv + 1) * sizeof (char *), 
+        if (env) {
+            *env = _malloc_dbg((dupenv + 1) * sizeof (char *),
                                _CRT_BLOCK, __FILE__, __LINE__ );
             memcpy((void*)*env, _environ, (dupenv + 1) * sizeof (char *));
         }
@@ -177,11 +177,11 @@
     if (apr_get_oslevel(&osver) != APR_SUCCESS) {
         return APR_EEXIST;
     }
-    
+
     tls_apr_thread = TlsAlloc();
     if ((status = apr_pool_initialize()) != APR_SUCCESS)
         return status;
-    
+
     if (apr_pool_create(&pool, NULL) != APR_SUCCESS) {
         return APR_ENOPOOL;
     }
@@ -198,7 +198,7 @@
         WSACleanup();
         return APR_EEXIST;
     }
-    
+
     apr_signal_init(pool);
 
     return APR_SUCCESS;
@@ -211,7 +211,7 @@
         return;
     }
     apr_pool_terminate();
-    
+
     WSACleanup();
 
     TlsFree(tls_apr_thread);



Mime
View raw message