X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstdlib.h;h=b3a92bd46159f7a17555f6b91c56c11e648f0d9f;hp=e724bf764102a5f6c1037a4b39474471458728f1;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=c510d64eb2b5d70547b4d36f35ebd12809aabd32 diff --git a/includes/stdlib.h b/includes/stdlib.h index e724bf7..b3a92bd 100644 --- a/includes/stdlib.h +++ b/includes/stdlib.h @@ -6,7 +6,7 @@ #ifndef _PDCLIB_STDLIB_H #define _PDCLIB_STDLIB_H _PDCLIB_STDLIB_H -#include <_PDCLIB_int.h> +#include "_PDCLIB_int.h" #ifdef __cplusplus extern "C" { @@ -22,6 +22,15 @@ typedef _PDCLIB_size_t size_t; #define NULL _PDCLIB_NULL #endif +#ifndef __cplusplus + +#ifndef _PDCLIB_WCHAR_T_DEFINED +#define _PDCLIB_WCHAR_T_DEFINED _PDCLIB_WCHAR_T_DEFINED +typedef _PDCLIB_wchar_t wchar_t; +#endif + +#endif + #ifndef _PDCLIB_MB_CUR_MAX_DEFINED #define _PDCLIB_MB_CUR_MAX_DEFINED #define MB_CUR_MAX (_PDCLIB_mb_cur_max()) @@ -183,6 +192,13 @@ _PDCLIB_noreturn void exit( int status ) _PDCLIB_nothrow; */ _PDCLIB_noreturn void _Exit( int status ) _PDCLIB_nothrow; +/* Quick process termination. Functions registered by at_quick_exit() (see + above) are called, and the process terminated. No functions registered + with atexit() (see above) or signal handlers are called. + quick_exit() does not return. +*/ +_PDCLIB_noreturn void quick_exit( int status ); + /* Search an environment-provided key-value map for the given key name, and return a pointer to the associated value string (or NULL if key name cannot be found). The value string pointed to might be overwritten by a subsequent