]> pd.if.org Git - pdclib/commitdiff
Moved struct definition to internal header.
authorsolar <unknown>
Mon, 30 Jan 2006 18:08:34 +0000 (18:08 +0000)
committersolar <unknown>
Mon, 30 Jan 2006 18:08:34 +0000 (18:08 +0000)
functions/stdlib/atexit.c
functions/stdlib/exit.c
internals/_PDCLIB_aux.h

index 573e4ba68bf706590b71e377ba0e21cbf45eae46..1ca1e7fa3eeb3e06fd8424d5690854e0eaab4e90 100644 (file)
 
 #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 ) )
index f093fe048bfd8a03923b7480167bf6e5f63e404b..520757d501bd04667ae2aa3380de297c0c0979c4 100644 (file)
 
 #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 )
index be39eb21063a5e229f9b9b7fc2ece2ad1c6700ec..a4e7a621e3565ec5457deeea061b273be519491f 100644 (file)
 #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 );
+};