]> pd.if.org Git - pdclib/blobdiff - internals/_PDCLIB_int.h
Moved internal struct definitions to _PDCLIB_int.h where they belong.
[pdclib] / internals / _PDCLIB_int.h
index 8f2cf74ffb467618bd5ac588d52e14f2b34ea46c..ba5ab61bb6ea21d75e30cc66b194589dd66cbb13 100644 (file)
@@ -265,3 +265,27 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, int base, _PDCLIB_uintma
 
 /* Digits array used by various integer conversion functions in <stdlib.h>    */
 extern char _PDCLIB_digits[];
+
+/* -------------------------------------------------------------------------- */
+/* 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 );
+};
+
+/* Structures required by malloc(), realloc(), and free(). */
+struct _PDCLIB_headnode_t
+{
+    struct _PDCLIB_memnode_t * first;
+    struct _PDCLIB_memnode_t * last;
+};
+
+struct _PDCLIB_memnode_t
+{
+    struct _PDCLIB_memnode_t * next;
+    _PDCLIB_size_t size;
+};