From a3e92aab353cabae2743b78de1f12fe94e66a339 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 25 Mar 2011 13:23:14 +0200 Subject: Some cleanups after code review of main.c. --- awk.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'awk.h') diff --git a/awk.h b/awk.h index 18e348c9..a56b2b29 100644 --- a/awk.h +++ b/awk.h @@ -185,6 +185,15 @@ extern void *memset_ulong(void *dest, int val, unsigned long l); #define memset memset_ulong #endif +#ifdef HAVE_LIBSIGSEGV +#include +#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)) -- cgit v1.2.3