summaryrefslogblamecommitdiff
path: root/src/poison.hpp
blob: d196bc6a1358d61aead610beda2e627899aa6da4 (plain) (tree)
1
2
3
4
5
6
7
8




                                                     

                             
                                                         







                                                    






                                                           
                         
      
// impossible(*) to use safely
// removed in C11
#pragma GCC poison gets

// TODO fill in as they are removed from source code:
// double (use a fixed class)
#pragma GCC poison float
// mem* and str* from <string.h>, in favor of <algorithm>

// Local time is forbidden.
#pragma GCC poison timelocal // timegm
#pragma GCC poison mktime // timegm
#pragma GCC poison localtime // gmtime
#pragma GCC poison localtime_r // gmtime_r

#pragma GCC poison time // TimeT::now() or gettick()

// Use some sort of managed container, or at least dumb_ptr
#if 0
#pragma GCC poison malloc
#pragma GCC poison calloc
#pragma GCC poison realloc
#pragma GCC poison free
#pragma GCC poison strdup
#endif