]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/atexit.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdlib / atexit.c
index a2c1598dd7b1371d97c85f7f2d0d9de17db2aea4..808bcb1176406ff4c855d38e0097dbc32793f012 100644 (file)
@@ -8,18 +8,18 @@
 
 #ifndef REGTEST
 
-extern void (*_PDCLIB_regstack[])( void );
-extern size_t _PDCLIB_regptr;
+extern void (*_PDCLIB_exitstack[])( void );
+extern size_t _PDCLIB_exitptr;
 
 int atexit( void (*func)( void ) )
 {
-    if ( _PDCLIB_regptr == 0 )
+    if ( _PDCLIB_exitptr == 0 )
     {
         return -1;
     }
     else
     {
-        _PDCLIB_regstack[ --_PDCLIB_regptr ] = func;
+        _PDCLIB_exitstack[ --_PDCLIB_exitptr ] = func;
         return 0;
     }
 }
@@ -27,7 +27,7 @@ int atexit( void (*func)( void ) )
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 #include <assert.h>
 
 static int flags[ 32 ];