diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-03-25 13:23:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-03-25 13:23:14 +0200 |
commit | a3e92aab353cabae2743b78de1f12fe94e66a339 (patch) | |
tree | 7a32ea31097ed65c9cb8a385bd082473f5a9f037 /awk.h | |
parent | 09a48263ff3db65b3e24f1b5fc50800c20cce162 (diff) | |
download | egawk-a3e92aab353cabae2743b78de1f12fe94e66a339.tar.gz egawk-a3e92aab353cabae2743b78de1f12fe94e66a339.tar.bz2 egawk-a3e92aab353cabae2743b78de1f12fe94e66a339.zip |
Some cleanups after code review of main.c.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -185,6 +185,15 @@ extern void *memset_ulong(void *dest, int val, unsigned long l); #define memset memset_ulong #endif +#ifdef HAVE_LIBSIGSEGV +#include <sigsegv.h> +#else +typedef void *stackoverflow_context_t; +#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 + /* use this as lintwarn("...") this is a hack but it gives us the right semantics */ #define lintwarn (*(set_loc(__FILE__, __LINE__),lintfunc)) |