Skip to content

Commit

Permalink
windows.cfg: Issue a warning for deprecated functions stricmp() and w… (
Browse files Browse the repository at this point in the history
#7184)

…csicmp()
  • Loading branch information
orbitcowboy authored Jan 5, 2025
1 parent ca0bcae commit 569fde0
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions cfg/windows.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2292,17 +2292,53 @@
<not-uninit/>
</arg>
</function>
<!-- int stricmp(const char *s1, const char *s2); -->
<!-- int _stricmp(const char *s1, const char *s2); -->
<!-- int wcsicmp(const wchar_t *s1, const wchar_t *s2); -->
<!-- int _wcsicmp(const wchar_t *s1, const wchar_t *s2); -->
<!-- int _mbsicmp(const unsigned char *string1, const unsigned char *string2); -->
<!-- https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/stricmp-wcsicmp-mbsicmp-stricmp-l-wcsicmp-l-mbsicmp-l?view=msvc-170 -->
<function name="stricmp,_stricmp,wcsicmp,_wcsicmp,_mbsicmp,_tcsicmp">
<function name="_stricmp,_wcsicmp,_mbsicmp,_tcsicmp">
<noreturn>false</noreturn>
<returnValue type="int"/>
<leak-ignore/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
</function>
<!-- int stricmp(const char *s1, const char *s2); -->
<!-- https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/stricmp-wcsicmp?view=msvc-170 -->
<function name="stricmp">
<noreturn>false</noreturn>
<returnValue type="int"/>
<leak-ignore/>
<use-retval/>
<warn severity="style" reason="Obsolescent" alternatives="_stricmp"/>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
</function>
<!-- int wcsicmp(const wchar_t *s1, const wchar_t *s2); -->
<!-- https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/stricmp-wcsicmp?view=msvc-170 -->
<function name="wcsicmp">
<noreturn>false</noreturn>
<returnValue type="int"/>
<leak-ignore/>
<use-retval/>
<warn severity="style" reason="Obsolescent" alternatives="_wcsicmp"/>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
Expand Down

0 comments on commit 569fde0

Please sign in to comment.