#ifndef REGTEST
-/* TODO: Required by both atexit() and exit(). */
-struct _PDCLIB_exitfunc_t
-{
- struct _PDCLIB_exitfunc_t * next;
- void (*func)( void );
-};
-
extern struct _PDCLIB_exitfunc_t * regstack;
int atexit( void (*func)( void ) )
#ifndef REGTEST
-/* TODO: Required by both atexit() and exit(). */
-struct _PDCLIB_exitfunc_t
-{
- struct _PDCLIB_exitfunc_t * next;
- void (*func)( void );
-};
-
struct _PDCLIB_exitfunc_t * regstack = NULL;
void exit( int status )
#define _PDCLIB_symbol2value( x ) #x
#define _PDCLIB_symbol2string( x ) _PDCLIB_symbol2value( x )
#define _PDCLIB_symbol2identity( x ) x
+
+/* -------------------------------------------------------------------------- */
+/* Internal data types */
+/* -------------------------------------------------------------------------- */
+
+/* Structure required by both atexit() and exit() for handling atexit functions */
+struct _PDCLIB_exitfunc_t
+{
+ struct _PDCLIB_exitfunc_t * next;
+ void (*func)( void );
+};