#include "git-compat-util.h" #include "sigchain.h" #define SIGCHAIN_MAX_SIGNALS … struct sigchain_signal { … }; static struct sigchain_signal signals[SIGCHAIN_MAX_SIGNALS]; static void check_signum(int sig) { … } int sigchain_push(int sig, sigchain_fun f) { … } int sigchain_pop(int sig) { … } void sigchain_push_common(sigchain_fun f) { … } void sigchain_pop_common(void) { … }