]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/atexit.c
Whitespace cleanups.
[pdclib] / functions / stdlib / atexit.c
index 0d61e32a818f39c9f6645f279bd6331ab5bfdb4a..42a98ed0dec0689537dca0a2373fd7f7e9056b4b 100644 (file)
@@ -1,7 +1,3 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
 /* atexit( void (*)( void ) )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -24,26 +20,28 @@ int atexit( void (*func)( void ) )
     else
     {
         _PDCLIB_regstack[ --_PDCLIB_regptr ] = func;
-       return 0;
+        return 0;
     }
 }
 
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
+
 #include <assert.h>
 
 static int flags[ 32 ];
 
-static void counthandler()
+static void counthandler( void )
 {
-    static int rc = 0;
-    flags[ rc ] = rc;
-    ++rc;
+    static int count = 0;
+    flags[ count ] = count;
+    ++count;
 }
 
-static void checkhandler()
+static void checkhandler( void )
 {
     for ( int i = 0; i < 31; ++i )
     {
@@ -51,9 +49,8 @@ static void checkhandler()
     }
 }
 
-int main()
+int main( void )
 {
-    BEGIN_TESTS;
     TESTCASE( atexit( &checkhandler ) == 0 );
     for ( int i = 0; i < 31; ++i )
     {