Centralise fault handling

This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
This commit is contained in:
Benny Baumann
2020-10-03 17:53:15 +02:00
committed by cgzones
parent b47bc667a2
commit 601480003f
18 changed files with 115 additions and 335 deletions

5
CRT.h
View File

@ -117,8 +117,7 @@ typedef enum ColorElements_ {
void CRT_fatalError(const char* note) ATTR_NORETURN;
extern struct sigaction old_sigsegv_handler;
void CRT_handleSIGSEGV(int sgn);
void CRT_handleSIGSEGV(int signal) ATTR_NORETURN;
#define KEY_ALT(x) (KEY_F(64 - 26) + (x - 'A'))
@ -147,8 +146,6 @@ extern char* CRT_termType;
extern int CRT_colorScheme;
extern void *backtraceArray[128];
#ifdef HAVE_SETUID_ENABLED
void CRT_dropPrivileges(void);