std.cfg: Improved support for <cwchar> (wchar.h).

This commit is contained in:
orbitcowboy 2015-01-15 23:14:10 +01:00
parent 4e549d7d22
commit 42397ee8cb
1 changed files with 37 additions and 3 deletions

View File

@ -1074,6 +1074,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- wint_t fgetwc (FILE * stream); -->
<function name="fgetwc"> <function name="fgetwc">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1326,6 +1327,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- wint_t fputwc (wchar_t wc, FILE * stream); -->
<function name="fputwc"> <function name="fputwc">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1350,6 +1352,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- int fputws (const wchar_t* ws, FILE* stream); -->
<function name="fputws"> <function name="fputws">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1531,6 +1534,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- wchar_t* fgetws (wchar_t* ws, int num, FILE* stream); -->
<function name="fgetws"> <function name="fgetws">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1556,6 +1560,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- int fwide (FILE* stream, int mode); -->
<function name="fwide"> <function name="fwide">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1607,6 +1612,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- size_t mbrlen (const char* pmb, size_t max, mbstate_t* ps); -->
<function name="mbrlen"> <function name="mbrlen">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1632,6 +1638,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- int mbsinit (const mbstate_t* ps); -->
<function name="mbsinit"> <function name="mbsinit">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1639,6 +1646,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- wint_t getwchar (void); -->
<function name="getwchar"> <function name="getwchar">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1654,6 +1662,21 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- size_t mbsrtowcs (wchar_t* dest, const char** src, size_t max, mbstate_t* ps); -->
<function name="mbsrtowcs">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
<arg nr="4">
<not-null/>
</arg>
</function>
<function name="wctomb"> <function name="wctomb">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -1683,6 +1706,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- wint_t getwc (FILE* stream); -->
<function name="getwc"> <function name="getwc">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -3141,12 +3165,12 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- wint_t putwc (wchar_t wc, FILE* stream); -->
<function name="putwc"> <function name="putwc">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="2"> <arg nr="2">
<not-null/> <not-null/>
@ -3162,13 +3186,12 @@
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
</function> </function>
<!-- wint_t putwchar (wchar_t wc); -->
<function name="putwchar"> <function name="putwchar">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
<not-uninit/> <not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg> </arg>
</function> </function>
<function name="puts"> <function name="puts">
@ -4010,6 +4033,7 @@
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
<!-- size_t mbrtowc (wchar_t* pwc, const char* pmb, size_t max, mbstate_t* ps); -->
<function name="mbrtowc"> <function name="mbrtowc">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -4107,11 +4131,16 @@
<formatstr/> <formatstr/>
</arg> </arg>
</function> </function>
<!-- int fwprintf (FILE* stream, const wchar_t* format, ...); -->
<function name="fwprintf"> <function name="fwprintf">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<formatstr/> <formatstr/>
<arg nr="1">
<not-null/>
</arg>
<arg nr="2"> <arg nr="2">
<not-null/>
<formatstr/> <formatstr/>
</arg> </arg>
</function> </function>
@ -4155,11 +4184,16 @@
<formatstr/> <formatstr/>
</arg> </arg>
</function> </function>
<!-- int fwscanf (FILE* stream, const wchar_t* format, ...); -->
<function name="fwscanf"> <function name="fwscanf">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<formatstr scan="true"/> <formatstr scan="true"/>
<arg nr="1">
<not-null/>
</arg>
<arg nr="2"> <arg nr="2">
<not-null/>
<formatstr/> <formatstr/>
</arg> </arg>
</function> </function>