24 lines
431 B
C
24 lines
431 B
C
#ifndef BANNED_DIE_H
|
|
#define BANNED_DIE_H
|
|
|
|
#include "banned.h"
|
|
|
|
/*
|
|
* This header lists functions that must not be used by low-level APIs
|
|
* because they can cause Git to terminate.
|
|
*/
|
|
|
|
#undef die
|
|
#define die BANNED(die)
|
|
|
|
#undef xsnprintf
|
|
#define xsnprintf(...) BANNED(xsnprintf)
|
|
|
|
#undef xstrdup
|
|
#define xstrdup(str) BANNED(xstrdup)
|
|
|
|
#undef ALLOC_ARRAY
|
|
#define ALLOC_ARRAY(x, alloc) BANNED(ALLOC_ARRAY)
|
|
|
|
#endif /* BANNED_DIE_H */
|