svn commit: trunk/uClibc/libc/misc/internals

vapier at uclibc.org vapier at uclibc.org
Fri Feb 17 12:06:32 UTC 2006


Author: vapier
Date: 2006-02-17 04:06:32 -0800 (Fri, 17 Feb 2006)
New Revision: 14095

Log:
touchup whitespace

Modified:
   trunk/uClibc/libc/misc/internals/__uClibc_main.c


Changeset:
Modified: trunk/uClibc/libc/misc/internals/__uClibc_main.c
===================================================================
--- trunk/uClibc/libc/misc/internals/__uClibc_main.c	2006-02-17 12:06:02 UTC (rev 14094)
+++ trunk/uClibc/libc/misc/internals/__uClibc_main.c	2006-02-17 12:06:32 UTC (rev 14095)
@@ -87,7 +87,7 @@
 #ifdef __UCLIBC_CTOR_DTOR__
 extern void _dl_app_init_array(void);
 extern void _dl_app_fini_array(void);
-#ifndef SHARED
+# ifndef SHARED
 /* These magic symbols are provided by the linker.  */
 extern void (*__preinit_array_start []) (void) attribute_hidden;
 extern void (*__preinit_array_end []) (void) attribute_hidden;
@@ -95,8 +95,8 @@
 extern void (*__init_array_end []) (void) attribute_hidden;
 extern void (*__fini_array_start []) (void) attribute_hidden;
 extern void (*__fini_array_end []) (void) attribute_hidden;
+# endif
 #endif
-#endif
 
 attribute_hidden const char *__uclibc_progname = NULL;
 #ifdef __UCLIBC_HAS___PROGNAME__
@@ -132,7 +132,6 @@
 #endif
 
 #ifdef __ARCH_HAS_MMU__
-
 static void __check_one_fd(int fd, int mode)
 {
     /* Check if the specified fd is already open */
@@ -247,13 +246,13 @@
 void __uClibc_fini(void)
 {
 #ifdef __UCLIBC_CTOR_DTOR__
-#ifdef SHARED
+# ifdef SHARED
     _dl_app_fini_array();
-#else
+# else
     size_t i = __fini_array_end - __fini_array_start;
     while (i-- > 0)
 	(*__fini_array_start [i]) ();
-#endif
+# endif
     if (__app_fini != NULL)
 	(__app_fini)();
 #endif
@@ -347,7 +346,7 @@
     /* Arrange for the application's dtors to run before we exit.  */
     __app_fini = app_fini;
 
-#ifndef SHARED
+# ifndef SHARED
     /* For dynamically linked executables the preinit array is executed by
        the dynamic linker (before initializing any shared object).
        For static executables, preinit happens rights before init.  */
@@ -357,22 +356,22 @@
 	for (i = 0; i < size; i++)
 	    (*__preinit_array_start [i]) ();
     }
-#endif
+# endif
     /* Run all the application's ctors now.  */
     if (app_init!=NULL) {
 	app_init();
     }
-#ifdef SHARED
+# ifdef SHARED
     _dl_app_init_array();
-#else
+# else
     {
 	const size_t size = __init_array_end - __init_array_start;
 	size_t i;
 	for (i = 0; i < size; i++)
 	    (*__init_array_start [i]) ();
     }
+# endif
 #endif
-#endif
 
     /* Note: It is possible that any initialization done above could
      * have resulted in errno being set nonzero, so set it to 0 before




More information about the uClibc-cvs mailing list