Skip to content

Commit

Permalink
std.cfg: removed non-existent (draft) functions
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 18, 2024
1 parent b38ebbd commit 2fd671b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
20 changes: 2 additions & 18 deletions cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4153,8 +4153,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg>
</function>
<!-- time_t mktime(struct tm *tp); -->
<!-- time_t mkxtime(struct tmx *tp); -->
<function name="mktime,std::mktime,mkxtime">
<function name="mktime,std::mktime">
<returnValue type="time_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
Expand Down Expand Up @@ -4956,8 +4955,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg>
</function>
<!-- size_t strftime(char *s, size_t max, const char *fmt, const struct tm *p); -->
<!-- size_t strfxtime(char *s, size_t max, const char *fmt, const struct tmx *p); -->
<function name="strftime,std::strftime,strfxtime">
<function name="strftime,std::strftime">
<returnValue type="size_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
Expand Down Expand Up @@ -6523,20 +6521,6 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<not-uninit/>
</arg>
</function>
<!-- struct tmx *zonetime(const time_t *tp, int zone); -->
<function name="zonetime">
<use-retval/>
<returnValue type="struct tmx *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
</function>
<!-- size_t c16rtomb ( char * pmb, char16_t c16, mbstate_t * ps ); -->
<!-- size_t c32rtomb ( char * pmb, char32_t c32, mbstate_t * ps ); -->
<function name="c16rtomb,c32rtomb">
Expand Down
25 changes: 0 additions & 25 deletions test/cfg/std.c
Original file line number Diff line number Diff line change
Expand Up @@ -2989,13 +2989,6 @@ void uninitvar_mktime(void)
struct tm *tp;
// cppcheck-suppress uninitvar
(void)mktime(tp);

/* mkxtime() is still a draft: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n793.htm */
#if 0
struct tmx *tpx;
// cppcheck-suppress uninitvar
(void)mkxtime(tpx);
#endif
}

void uninitvar_modf(void)
Expand Down Expand Up @@ -3698,13 +3691,6 @@ void uninitvar_strftime(void)
const struct tm *p;
// cppcheck-suppress uninitvar
(void)strftime(s,max,fmt,p);

/* strfxtime() is still a draft: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n793.htm */
#if 0
const struct tmx *px;
// cppcheck-suppress uninitvar
(void)strfxtime(s,max,fmt,px);
#endif
}

void uninitvar_strlen(const char *str)
Expand Down Expand Up @@ -4545,17 +4531,6 @@ int nullPointer_mtx_timedlock( mtx_t *restrict mutex, const struct timespec *res
}
#endif

/* zonetime() appears to be part of (or a comment to) draft N2620 which no longer exists */
#if 0
void uninitvar_zonetime(void)
{
const time_t *tp;
int zone;
// cppcheck-suppress uninitvar
(void)zonetime(tp,zone);
}
#endif

#ifdef _WIN32
/* itoa() is not ANSI-C and not implemented by all compilers */
void uninitvar_itoa(void)
Expand Down

0 comments on commit 2fd671b

Please sign in to comment.