Merge branch 'jk/banned'
Non-reentrant time-related library functions and ctime/asctime with awkward calling interfaces are banned from the codebase. * jk/banned: banned.h: mark ctime_r() and asctime_r() as banned banned.h: mark non-reentrant gmtime, etc as bannedmaint
commit
d53feb5134
13
banned.h
13
banned.h
|
@ -29,4 +29,17 @@
|
||||||
#define vsprintf(buf,fmt,arg) BANNED(vsprintf)
|
#define vsprintf(buf,fmt,arg) BANNED(vsprintf)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef gmtime
|
||||||
|
#define gmtime(t) BANNED(gmtime)
|
||||||
|
#undef localtime
|
||||||
|
#define localtime(t) BANNED(localtime)
|
||||||
|
#undef ctime
|
||||||
|
#define ctime(t) BANNED(ctime)
|
||||||
|
#undef ctime_r
|
||||||
|
#define ctime_r(t, buf) BANNED(ctime_r)
|
||||||
|
#undef asctime
|
||||||
|
#define asctime(t) BANNED(asctime)
|
||||||
|
#undef asctime_r
|
||||||
|
#define asctime_r(t, buf) BANNED(asctime_r)
|
||||||
|
|
||||||
#endif /* BANNED_H */
|
#endif /* BANNED_H */
|
||||||
|
|
Loading…
Reference in New Issue