]> pd.if.org Git - pdclib/commitdiff
Missing declarations / definitions added to stdlib.h.
authorMartin Baute <solar@rootdirectory.de>
Sun, 13 Mar 2016 17:45:51 +0000 (18:45 +0100)
committerMartin Baute <solar@rootdirectory.de>
Sun, 13 Mar 2016 17:45:51 +0000 (18:45 +0100)
includes/stdlib.h

index e724bf764102a5f6c1037a4b39474471458728f1..e751dbe0c7bd5c240b43d42c883e2e5c16bab767 100644 (file)
@@ -22,6 +22,15 @@ typedef _PDCLIB_size_t size_t;
 #define NULL _PDCLIB_NULL
 #endif
 
 #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())
 #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;
 
 */
 _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
 /* 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