mirror of
https://github.com/git/git
synced 2024-10-01 06:05:20 +00:00
17 lines
398 B
C
17 lines
398 B
C
|
#ifndef BANNED_H
|
||
|
#define BANNED_H
|
||
|
|
||
|
/*
|
||
|
* This header lists functions that have been banned from our code base,
|
||
|
* because they're too easy to misuse (and even if used correctly,
|
||
|
* complicate audits). Including this header turns them into compile-time
|
||
|
* errors.
|
||
|
*/
|
||
|
|
||
|
#define BANNED(func) sorry_##func##_is_a_banned_function
|
||
|
|
||
|
#undef strcpy
|
||
|
#define strcpy(x,y) BANNED(strcpy)
|
||
|
|
||
|
#endif /* BANNED_H */
|