X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=internals%2F_PDCLIB_aux.h;h=a4e7a621e3565ec5457deeea061b273be519491f;hb=7842803c173209f48b087e149cae6204a48bb000;hp=8c4e897003e7e25c13f58c26bd3af274fa4d164f;hpb=0fc2b7c0c0a725426966b162a785cb3461879c19;p=pdclib.old diff --git a/internals/_PDCLIB_aux.h b/internals/_PDCLIB_aux.h index 8c4e897..a4e7a62 100644 --- a/internals/_PDCLIB_aux.h +++ b/internals/_PDCLIB_aux.h @@ -35,7 +35,7 @@ #endif #ifndef __STDC_HOSTED__ -#warning Compiler does not define _ _STDC_HOSTED_ _ (not standard-compliant)! +#error Compiler does not define _ _STDC_HOSTED_ _ (not standard-compliant)! #elif __STDC_HOSTED__ == 0 #define _PDCLIB_HOSTED 0 #elif __STDC_HOSTED__ == 1 @@ -45,8 +45,7 @@ #endif #if _PDCLIB_C_VERSION != 99 -#warning Up to and including v1.x, PDCLib is only aiming at ISO/IEC 9899:1999 (C99). -#warning PDCLib might not be fully conforming to either C89 or C95 prior to v2.x. +#error PDCLib might not be fully conforming to either C89 or C95 prior to v2.x. #endif /* -------------------------------------------------------------------------- */ @@ -61,3 +60,14 @@ #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 ); +};