X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fwchar.h;h=2740d003f64155538044bc2d974a4d17ae605b33;hb=814c9f639d79b682af88d4e4f4ce62ebfc9a653b;hp=bac7f40e40524f8cf0f1c65229c651897c9d22c2;hpb=0150bb9ffe66236b6a47c5800d8beef669d5c047;p=pdclib.old diff --git a/includes/wchar.h b/includes/wchar.h index bac7f40..2740d00 100644 --- a/includes/wchar.h +++ b/includes/wchar.h @@ -7,7 +7,7 @@ #ifndef _PDCLIB_WCHAR_H #define _PDCLIB_WCHAR_H -#include <_PDCLIB_int.h> +#include <_PDCLIB_io.h> _PDCLIB_BEGIN_EXTERN_C /* This is VASTLY incomplete. Functions being implemented as required by other portions of the library @@ -32,7 +32,7 @@ typedef _PDCLIB_wint_t wint_t; #ifndef _PDCLIB_MBSTATE_T_DEFINED #define _PDCLIB_MBSTATE_T_DEFINED _PDCLIB_MBSTATE_T_DEFINED -typedef struct _PDCLIB_mbstate_t mbstate_t; +typedef _PDCLIB_mbstate_t mbstate_t; #endif struct tm; @@ -101,6 +101,17 @@ wint_t putwc(wchar_t c, struct _PDCLIB_file_t *stream); wint_t putwchar(wchar_t c); wint_t ungetwc(wint_t c, struct _PDCLIB_file_t *stream); +#if _PDCLIB_GNU_SOURCE +wint_t getwc_unlocked(struct _PDCLIB_file_t *stream); +wint_t getwchar_unlocked(void); +wint_t fgetwc_unlocked(struct _PDCLIB_file_t *stream); +wint_t fputwc_unlocked(wchar_t wc, struct _PDCLIB_file_t *stream); +wint_t putwc_unlocked(wchar_t wc, struct _PDCLIB_file_t *stream); +wint_t putwchar_unlocked(wchar_t wc); +wchar_t *fgetws_unlocked(wchar_t *ws, int n, struct _PDCLIB_file_t *stream); +int fputws_unlocked(const wchar_t *ws, struct _PDCLIB_file_t *stream); +#endif + /* Wide character <-> Numeric conversions */ #if 0 double wcstod(const wchar_t *_PDCLIB_restrict nptr, wchar_t **_PDCLIB_restrict endptr);