X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fwchar.h;h=e3d8e4924d548b0c99ac138088015f39cd1b38d3;hb=effb3189773dc441285c056abf1ea78276698cb8;hp=bac7f40e40524f8cf0f1c65229c651897c9d22c2;hpb=0150bb9ffe66236b6a47c5800d8beef669d5c047;p=pdclib.old diff --git a/includes/wchar.h b/includes/wchar.h index bac7f40..e3d8e49 100644 --- a/includes/wchar.h +++ b/includes/wchar.h @@ -7,7 +7,8 @@ #ifndef _PDCLIB_WCHAR_H #define _PDCLIB_WCHAR_H -#include <_PDCLIB_int.h> +#include <_PDCLIB_io.h> +#include <_PDCLIB_encoding.h> _PDCLIB_BEGIN_EXTERN_C /* This is VASTLY incomplete. Functions being implemented as required by other portions of the library @@ -32,7 +33,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 +102,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);