diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-07 20:41:47 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-07 20:41:47 +0300 |
commit | f9fadc3b2bf0bf9d65a981a712aa9aebc21a699b (patch) | |
tree | e81b49c837ae1950a96cafe6669069f067bccd73 /main.c | |
parent | 01c916919342d33cddfadb89b0b4e0ad6f6201f0 (diff) | |
download | egawk-f9fadc3b2bf0bf9d65a981a712aa9aebc21a699b.tar.gz egawk-f9fadc3b2bf0bf9d65a981a712aa9aebc21a699b.tar.bz2 egawk-f9fadc3b2bf0bf9d65a981a712aa9aebc21a699b.zip |
Minor code cleanups.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -33,6 +33,16 @@ #include <mcheck.h> #endif +#ifdef HAVE_LIBSIGSEGV +#include <sigsegv.h> +#else +typedef void *stackoverflow_context_t; +/* the argument to this macro is purposely not used */ +#define sigsegv_install_handler(catchsegv) signal(SIGSEGV, catchsig) +/* define as 0 rather than empty so that (void) cast on it works */ +#define stackoverflow_install_handler(catchstackoverflow, extra_stack, STACK_SIZE) 0 +#endif + #define DEFAULT_PROFILE "awkprof.out" /* where to put profile */ #define DEFAULT_VARFILE "awkvars.out" /* where to put vars */ #define DEFAULT_PREC 53 |